- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
if (indexPath.row == 5)
{
[tableView deselectRowAtIndexPath:indexPath animated:YES];
[enginesPopoverController presentPopoverFromRect:[tableView bounds] inView:self.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
}
}
最佳答案
[popoverController presentPopoverFromRect:[tableView rectForRowAtIndexPath:indexPath] inView:[self view] permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
祝你好运!
关于ipad - 如何从 UITableViewCell 呈现 UIPopoverController?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3352546/