1. 程式人生 > >Status bar could not find cached time string image. Rendering in-process?

Status bar could not find cached time string image. Rendering in-process?

然後在用到該方法的viewcontroller中新增

- (void)viewDidAppear:(BOOL)animated{

[super viewDidAppear:animated];

if ([self respondsToSelector:@selector(setNeedsStatusBarAppearanceUpdate)]) {

[self prefersStatusBarHidden];

[self performSelector:@selector(setNeedsStatusBarAppearanceUpdate)];

}

}

- (BOOL)prefersStatusBarHidden{

returnNO;

}