I am using storyboard. I have a table view with 1 Prototype cell, and have four rows in table view. Each cell has a label,image view and a button. Now I want to show different data on next View Controller say(DetailsVc), each time when button is pressed. Row1- Button click will open DetailsVC with some data. Row2- Button click will open DetailsVC with different data. and same process for remaining rows. Any suggestions.
@implementation DetailsVC
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
EmpEngmntTableViewCell *emp;
if((emp.viewGalleryBtn.tag = 1))
{
NSLog(@"tag num for 1st row is %ld",(long)emp.viewGalleryBtn.tag);
self.title = @"Team Building Session";
}
}