How can I present an UIPopoverController from an UITableViewCell?
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
if (indexPath.row == 5)
{
[tableView deselectRowAtIndexPath:indexPath animated:YES];
[enginesPopoverController presentPopoverFromRec开发者_高级运维t:[tableView bounds] inView:self.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
}
}
[popoverController presentPopoverFromRect:[tableView rectForRowAtIndexPath:indexPath] inView:[self view] permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
Good Luck!
精彩评论