在pkrevealcontroller上应用视图控制器后,状态栏样式的设置不起作用。
在项目设置中将状态栏样式设置为黑色半透明=>不工作。
在viewWillAppear方法中设置状态栏样式为黑色半透明=>不工作
没有pkrevealcontroller,一切都很好。
无论如何要解决这个问题?
My pkrevealController setup:
MenuViewController *menuVC = [[MenuViewController alloc] initWithStyle:UITableViewStylePlain];
PKRevealController *revealController = [PKRevealController revealControllerWithFrontViewController:self.tabBarController leftViewController:menuVC options:nil];
在viewWillAppear方法中设置状态栏样式:
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackTranslucent animated:YES];
非常感谢!