如何创建 UIPopoverView 的静态版本?
我尝试在界面中使用弹出窗口,但 UIPopoverController 的所有便利功能使其变得不可能。
我的目标是使用弹出窗口的镶边,但没有任何关联的事件或操作。我需要它保持显示在屏幕上(不关闭)并且不是模态的。
所以现在我正在考虑使用图像构建我自己的视图。我的问题:有没有更好的方法来实现这一点(带有图像边框的视图)?
I tried using a popover in my interface, but all the convenience features of the UIPopoverController made it impossible.
My goal is to use the popover's chrome, but none of the associated events or actions. I need it to stay displayed onscreen (no dismissal) and not be modal.
So now I'm considering building my own view using images. My question: is there a better way to accomplish this (a view with image borders)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您希望将 UIPopover 保留在屏幕上并允许用户在显示弹出窗口时与屏幕上的其他视图进行交互,请考虑使用
UIPopoverController
上的passthroughViews
属性。 "http://developer.apple.com/iphone/library/documentation/uikit/reference/UIPopoverController_class/Reference/Reference.html" rel="nofollow noreferrer">UIPopoverController 类参考:
您应该能够通过仅传递仅包含“背景”视图控制器视图的数组来实现您想要的效果。
If you want to stay your UIPopover onscreen and allow the user to interact with other views onscreen while to popover is show, consider using the
passthroughViews
property onUIPopoverController
The UIPopoverController Class Reference:
You should be able to achieve the effect you want by just passing an array containing only the "background" viewcontroller's view.