I have a view controller in that having a table view in that a Custom cell.
I have a button in a custom cell
MyViewController
---View
------TableView
-------------Custom cell
-------------------UIButton
I want to implement the button action for that button in the custom cell, in the Custom cell class.
I want to present another viewcontoler called mailPage by clicking on button for thet
-(IBAction)webButtonClicked:(id)sender
{
[self presentModalViewController:mailpage animated:YES];
}
But here self means CustomCell, even i tried with superview i didn't get my view contoller to represent in place of self
I tried like this but no use.
MyViewController *myViewController =self.superview
How to get my View controler containing the current custom cell