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

错误原因:
过程渲染的时候,IOS状态栏找不到缓存的时间字符串图像。
解决方法:

Product->Target-> Deployment Info -> 勾选’Hide status bar'

如果还是显示该信息可以在info.plist 设置View controller-based status bar appearance 设置为YES;

然后在用到该方法的viewcontroller中添加

- (void)viewDidAppear:(BOOL)animated{

[super viewDidAppear:animated];

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

[self prefersStatusBarHidden];

[self performSelector:@selector(setNeedsStatusBarAppearanceUpdate)];

}

}

- (BOOL)prefersStatusBarHidden{

    return NO;

}


然后在用到该方法的viewcontroller中添加

- (void)viewDidAppear:(BOOL)animated{

[super viewDidAppear:animated];

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

[self prefersStatusBarHidden];

[self performSelector:@selector(setNeedsStatusBarAppearanceUpdate)];

}

}

- (BOOL)prefersStatusBarHidden{

    return NO;

}

猜你喜欢

转载自blog.csdn.net/yuhao309/article/details/80231924
今日推荐