07-21-2023, 06:31 PM
I have a view controller with a table view and a separate nib for the table cell template. The cell template has some buttons. I want to access the button click along with the index of the cell clicked inside the view controller where I have defined the Table view.
So I have `ViewController.h` and `ViewController.m` where I have the `UITableView` and `TableTemplate.h`, `TableTemplate.m` and `TableTemplate.xib` where I have the nib defined. I want the button click event with cell index in `ViewController.m`.
Any help on how can I do that?
So I have `ViewController.h` and `ViewController.m` where I have the `UITableView` and `TableTemplate.h`, `TableTemplate.m` and `TableTemplate.xib` where I have the nib defined. I want the button click event with cell index in `ViewController.m`.
Any help on how can I do that?