[myPopover presentPopoverFromrect:cell.frame inVIEw:self.tableVIEw permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
但我不能使用UIPopoverArrowDirectionRight或left,因为,根据位置
的ipad(纵向或横向),popover出现在其他地方。
我给popover正确的方式吗?
PS:表视图是在一个splitVIEw的detailVIEw。
解决方法 这里是简单的解决方案,对我很好- (voID)tableVIEw:(UItableVIEw *)tableVIEw dIDSelectRowAtIndexPath:(NSIndexPath *)indexPath { UItableVIEwCell *cell = [tableVIEw cellForRowAtIndexPath:indexPath]; CGRect rect=CGRectMake(cell.bounds.origin.x+600,cell.bounds.origin.y+10,50,30); [popOverController presentPopoverFromrect:rect inVIEw:cell permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];}总结
以上是内存溢出为你收集整理的objective-c – 如何使用UIPopoverArrowDirectionRight或UIPopoverArrowDirectionLeft正确呈现来自UITableViewCell的popover全部内容,希望文章能够帮你解决objective-c – 如何使用UIPopoverArrowDirectionRight或UIPopoverArrowDirectionLeft正确呈现来自UITableViewCell的popover所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)