ipad – 如何从UITableViewCell呈现UIPopoverController?

    - (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];

    祝好运!

    相关文章
    相关标签/搜索
    香港马会全年资枓20192019年香港六合马会开奖结果现场直播开奖历史资料记录在线查询二四六天天好彩免费资料大全