【发布时间】:2014-04-03 05:25:43
【问题描述】:
我有一个在点击按钮时弹出的注册表单。 我的目标是在弹出此模式时隐藏状态栏。
这是我的代码:
- (IBAction)tappedJoinButton:(id)sender {
if (![PFUser currentUser]) {
PFSignUpViewController *signUpViewController = [[PFSignUpViewController alloc] init];
[signUpViewController setDelegate:self]; // Set ourselves as the delegate
// Present the sign up view controller
[self presentViewController:signUpViewController animated:YES completion:NULL];
}
}
我已在我的 plist 文件中将基于视图控制器的状态栏外观设置为是。现在我想选择隐藏状态栏的位置。在这种情况下,我想将其隐藏在弹出的 signUpViewController 中。
我在这里没有看到任何显示如何将其隐藏在推送视图控制器中的答案。
我如何做到这一点?
亲切的问候
【问题讨论】:
-
[[UIApplication sharedApplication] setStatusBarHidden:NO];试试这个代码...
-
[[UIApplication sharedApplication] setStatusBarHidden:YES];
标签: ios objective-c cocoa-touch pushviewcontroller uistatusbar