简体   繁体   中英

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM