【发布时间】:2011-04-18 15:58:43
【问题描述】:
我想以编程方式在表格视图中选择一行,然后显示我的弹出框并让箭头指向单元格。
当表格没有滚动时,此代码可以正常工作,对于滚动表格视图,弹出箭头的位置不正确。
[self.EventsTableView selectRowAtIndexPath:indexPath
animated:YES
scrollPosition:UITableViewScrollPositionMiddle];
[popoverController presentPopoverFromRect:CGRectOffset(cell.frame, 0, cell.frame.size.height + self.EventsTableView.contentOffset)
inView:self.view
permittedArrowDirections:UIPopoverArrowDirectionLeft
animated:YES];
感谢您的帮助
【问题讨论】:
标签: iphone ios ipad uitableview uipopovercontroller