I have a xib file with 4 buttons and each button has a function which it has to start when clicked. The function has to fetch data and after it has fetched data it should perform a segue. I am only allowed to use a nib which is of type UITableViewCell and show it in a tableview inside a viewcontroller.
Is it possible to get each button to start the required function when tapped in the tableviewcell, if so how do i go about it.
I have looked at questions similar to mine for days and tried all the suggested solutions and they arent working e.g.
Show ViewController from XIB-file-Button - Swift
Perform segue from button in XIB
Swift - Segue from Button inside a cell