popover中的导航栏

时间:2012-07-12 07:14:23

标签: iphone ios xcode

我的navigation bar有问题,当我通过popover呈现它时,我的导航栏被隐藏了,     像这样:

enter image description here

应该是这样的:

enter image description here

我的代码:

self.popoverController = 
[[UIPopoverController alloc] initWithContentViewController:imagePickerController]; 

popoverController.delegate = self;

CGRect popoverRect = [self.view convertRect:[tsuikaButton frame] 
                                   fromView:[tsuikaButton superview]];    
popoverRect.size.width = MIN(popoverRect.size.width, 100);

[self.popoverController 
 presentPopoverFromRect:popoverRect 
 inView:self.view 
 permittedArrowDirections:UIPopoverArrowDirectionAny 
 animated:YES];

[popoverController setPopoverContentSize:CGSizeMake(1024, 500)];

感谢您的帮助。

1 个答案:

答案 0 :(得分:0)

您是否尝试让imagePickerController占据整个屏幕?如果是这样,你有没有想过只推它而不使用弹出控制器?

相关问题