首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >UIPopoverController解聘

UIPopoverController解聘
EN

Stack Overflow用户
提问于 2011-11-22 03:50:49
回答 2查看 818关注 0票数 3

UIPopoverController本身的矩形之外的任何地方,当触摸UIPopoverController时,是否有一个名为的方法?

状态:

firstView有一个navBar。它的UINavBarItem通过触摸调用UIPopoverController,这会为firstView设置一些值,所以当UIPopoverController被关闭时,firstView必须进行更新。

(P.S. viewDidAppear不工作!)

谢谢!

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2011-11-22 03:55:39

为弹出窗口分配一个委托;然后您将同时拥有popoverControllerDidDismissPopover:popoverControllerShouldDismissPopover:

http://developer.apple.com/library/ios/#documentation/uikit/reference/UIPopoverControllerDelegate_protocol/Reference/Reference.html

票数 3
EN

Stack Overflow用户

发布于 2014-12-22 19:19:23

代码语言:javascript
复制
 you can dismiss your popover controller on touchesBegan method. this method call when you touch on view.


    -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
    {
        [popover dismiss];
    }


Hopefully help this.
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/8217658

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档