码迷,mamicode.com
首页 > 其他好文 > 详细

CG_CONTEXT_SHOW_BACKTRACE

时间:2015-10-19 10:50:10      阅读:380      评论:0      收藏:0      [点我收藏+]

标签:

Oct 19 10:27:05  [2995] <Error>: CGContextSaveGState: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.

Oct 19 10:27:05  [2995] <Error>: CGContextTranslateCTM: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.

Oct 19 10:27:05  [2995] <Error>: CGContextRestoreGState: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.

 

iOS9之后,info.plist中View controller-based status bar appearance设置为NO的话,就会报以上警告

使用iOS7以后的方法:

- (UIStatusBarStyle)preferredStatusBarStyle;

- (UIViewController *)childViewControllerForStatusBarStyle;

- (void)setNeedsStatusBarAppearanceUpdate

CG_CONTEXT_SHOW_BACKTRACE

标签:

原文地址:http://www.cnblogs.com/rgshio/p/4891154.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!