在UIPopoverController本身的矩形之外的任何地方,当触摸UIPopoverController时,是否有一个名为的方法?
状态:
firstView有一个navBar。它的UINavBarItem通过触摸调用UIPopoverController,这会为firstView设置一些值,所以当UIPopoverController被关闭时,firstView必须进行更新。
(P.S. viewDidAppear不工作!)
谢谢!
发布于 2011-11-22 03:55:39
为弹出窗口分配一个委托;然后您将同时拥有popoverControllerDidDismissPopover:和popoverControllerShouldDismissPopover:
http://developer.apple.com/library/ios/#documentation/uikit/reference/UIPopoverControllerDelegate_protocol/Reference/Reference.html
发布于 2014-12-22 19:19:23
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.https://stackoverflow.com/questions/8217658
复制相似问题