I am developing a messenger app. I have a tableview with custom cell containing an imageview and a couple of labels.
I want to load different controllers on tapping different UI elements. To be specific, I want controllerA to be loaded when imageView is tapped and controllerB when the rest of the row is selected.
I placed a button on top of imageview and made a customcellclass delegate to notify my tableviewcontroller when imageview is tapped with the aid of that button - now how am i supposed to get indexpath for the tapped row imageView ??
//MyCustomClassMethod
-(IBAction)loadProfileButtonTapped:(id)sender{
[self.loadProfileDelegate takeMeToProfile];
}
//i am implementing this method in my tableview controller
-(void)takeMeToProfile{
//need indexpath here
}