2010-07-28 7 views
3
- (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]; 
    } 
} 

답변

14
[popoverController presentPopoverFromRect:[tableView rectForRowAtIndexPath:indexPath] inView:[self view] permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES]; 

행운을 비네!

+0

+1 감사합니다. – Bogatyr

관련 문제