UIPopovercontroller 父级?
如何对uipopovercontroller的parentviewcontroller“执行选择器”? 我从 uiviewcontroller 启动了 uipopovercontroller,并且这个 uipopovercontroller 包含其他 uiviewcontroller。 我似乎无法从弹出窗口或“内部”视图控制器访问父视图控制器。
我希望我说得清楚...
顺便说一句 - ParentViewcontroller 不起作用...
谢谢!
How can "perform selector" to the parentviewcontroller of the uipopovercontroller?
I have uipopovercontroller lanuched from uiviewcontroller, and this uipopovercontroller includes other uiviewcontroller.
I can't seem to reach the parent view controller from either the popover or the "internal" view controller.
I hope i'm being clear...
BTW - parentViewcontroller doesn't work...
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
无法直接使用
UIPopoverController
执行此操作。您可能必须将对父视图控制器的引用传递给您使用弹出窗口控制器管理的视图控制器:类似的东西,但重要的是您的视图控制器(由弹出窗口控制器管理)具有在呈现弹出窗口之前获取对父视图控制器的引用。
There's no way to do this directly with
UIPopoverController
. You're going to have to probably pass a reference to your parent view controller to the view controller you're managing with a popover controller:Something like that, but the important point is that your view controller (managed by the popover controller) has to grab a reference to your parent view controller before you present the popover.
您可以使用私有方法从视图控制器获取父弹出窗口控制器。
You can use a private method to get a parent popover controller from the view controller.