2011-11-21 83 views
3

UIPopoverController本身在矩形外的任何地方被觸摸解散時,是否有方法調用UIPopoverControllerUIPopoverController解僱

狀態:

firstViewnavBar。其UINavBarItem通過觸摸調用UIPopoverController,其設置了firstView的幾個值,因此當UIPopoverController被解僱時必須更新firstView

(附註:viewDidAppear不工作!)

謝謝!

回答

1
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.