有没有办法通过编程以响应用户操作的方式在竖屏模式下显示根视图控制器?
在我的应用程序中,根视图控制器可以通过与详细控制器的一些用户交互来更新,并且当这种情况发生时,我想将其弹出。
谢谢!
在我的应用程序中,根视图控制器可以通过与详细控制器的一些用户交互来更新,并且当这种情况发生时,我想将其弹出。
谢谢!
UIPopOverController
:self.QuickSearchPopView = [[[QuickSearchPopView alloc]
initWithNibName:@"QuickSearchPopView"
bundle:[NSBundle mainBundle]] autorelease];
//create a popover controller
self.popoverController = [[[UIPopoverController alloc]
initWithContentViewController:self.QuickSearchPopView] autorelease];
//present the popover view non-modal with a
//refrence to the button pressed within the current view
[self.popoverController presentPopoverFromRect:self.view.frame
inView:self.view
permittedArrowDirections:UIPopoverArrowDirectionAny
animated:YES];