I have created a button programmatically in a UITableViewCell and I want it to open a new table view or popup when clicked. Please give me some tutorial or hint. Below is my code:
UIButton *button =[UIButton buttonWithType:UIButtonTypeCustom];
button.frame=CGRectMake(0,0,360,25);
[button addTarget:self action:@selector(dropDownClick) forControlEvents:UIControlEventTouchUpInside];
-(IBAction)dropDownClick
{
//Here I know there should be some code but I am not getting what it should be since I am new to iPad/iPhone development
}
If you just want to show a popup when tapping the button, you can use
UIAlertVIew