Timur Mustafaev
Timur Mustafaev

Reputation: 4929

Calling UIPopoverController from UITableView - objective-c

Is it possible to call UIPopoverController from parentViewController's tableView? For example I've selected UITableViewCell:

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath 
{
     //Call UIPopoverController here
}

If yes, please give short example code

Upvotes: 0

Views: 1128

Answers (1)

Raymond Wang
Raymond Wang

Reputation: 1484

What you wanna do is use a custom table view cell, and inside your cell, create a button. For the button, and define your popover from the button touch up inside event function. This method works and I use it in my current project.

If you need, I can provide more details as it is not easy to describe the entire process in a few words.

However, you might wanna check this out and see whether their solutions would help you.

Upvotes: 1

Related Questions