应用pkrevealcontroller后无法更改状态栏样式

时间:2013-06-15 01:25:15

标签: statusbar

在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];

非常感谢!

0 个答案:

没有答案
相关问题