弹出框的最大尺寸
谁能向我确认 popoverview 的最大尺寸?
谢谢
Could anyone confirm me the maximum size of a popoverview?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
谁能向我确认 popoverview 的最大尺寸?
谢谢
Could anyone confirm me the maximum size of a popoverview?
Thanks
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
来自
setPopoverContentSize:
文档:From the
setPopoverContentSize:
documentation:我发现 585 似乎是最大的,任何更大的尺寸都会随着尺寸的变化而向左移动。
I've found 585 seems to be the maximum, any larger and the whole thing wanders to the left with each size change.
我刚刚验证了这段代码可以在 iPad 1 和 iPad 4 上运行(这意味着 iOS 5.1.1 - 6.1.2 支持它)。
您应该注意到,很难关闭弹出窗口,因为它会以纵向或纵向方式“填满屏幕”。景观。我的 appDelegate.splitViewController 中确实有这些方法:
只需取消隐藏/隐藏您的 VC 角落中的一个按钮即可关闭:
还应该注意的是“popover”是一个强大的属性,否则当它出现时您将收到一条已释放的消息试图呈现。
I just verified that this code works on an iPad 1 and iPad 4 (meaning it is supported in iOS 5.1.1 - 6.1.2)
You should note that it's difficult to dismiss the popover since it will "fill the screen" in portrait or landscape. I do have these methods in my appDelegate.splitViewController:
Just unhide/hide a button in a corner of yourVC to dismiss with this:
It should also be noted that "popover" is a strong property, or you will get a deallocated message when it tries to present.