I have a XIB file with a custom cell, which has two buttons.
Basically, I want a dialogue box of some sort to pop up when the user taps the buttons which will inform them of details. I tried to display an alert view from the corresponding Swift file but as the XIB file inherits from a UITableViewCell I cannot present the alert controller. I also want the user to be able to edit the information displayed if possible (via alert controller).
In this context I want the button to display the user's Instagram and Twitter @usernames.
import UIKit
class SocialsTableViewCell: UITableViewCell {
    @IBOutlet var instagramButton: UIButton!
    @IBOutlet var twitterButton: UIButton!
    
    var instagramAt = ""
    var twitterAt = ""
    
    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)
        // Configure the view for the selected state
    }
    
    
    @IBAction func instagramTapped(_ sender: UIButton) {
        print("iNSTA TAPPED")
    }
    
    @IBAction func twitterTapped(_ sender: UIButton) {
        print(twitterAt)
    }
}
 
     
    