我正在为iPad制作儿童书籍应用程序,我的应用程序打开了一个模态窗口,可以选择男性或女性叙述者。我无法从模态窗口中删除状态栏。 PLS。参见附件截图(以黄色突出显示)。另外,如何使窗口看起来漂亮或透明,因为它目前看起来不太吸引人?
以下是在我的主控制器中打开ModalViewController的代码逻辑:
-(IBAction)appLinkGet{
[self loadSetupModalView];
}
-(void)loadSetupModalView{
NSLog(@"ChildrenBookViewController ==> loadSetupModalView::");
// Create a Navigation controller
UINavigationController *navController = [[UINavigationController alloc]
initWithRootViewController:self.setupViewController];
//RESIZE THE MODAL VIEW
navController.modalPresentationStyle = UIModalPresentationFormSheet;
navController.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
[self presentModalViewController:navController animated:YES];
navController.view.superview.autoresizingMask =
UIViewAutoresizingFlexibleTopMargin |
UIViewAutoresizingFlexibleBottomMargin;
navController.view.superview.frame = CGRectMake(
navController.view.superview.frame.origin.x,
navController.view.superview.frame.origin.y,
540.0f,
400.0f
);
//navController.view.superview.center = self.view.center;
[navController release];
}
答案 0 :(得分:0)
尝试使用此方法:
[navController setNavigationBarHidden:YES animated:NO];