<Error>: CGContextRestoreGState
来源:互联网 发布:电器销售管理系统sql 编辑:程序博客网 时间:2024/06/03 22:40
<Error>: CGContextRestoreGState: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
出错原因:设置app的状态栏样式的使用使用了旧的方式,在info.plist里面设置了View controller-based status bar appearance为NO,默认为YES,一般式iOS6的时候使用这种方式,iOS7,8也兼容,但是到了iOS9就报了警告。修改方式将View controller-based status bar appearance设置为YES,然后使用新的方式来实现状态栏的样式。
ios7之后的方法
- (UIStatusBarStyle)preferredStatusBarStyle;
- (UIViewController *)childViewControllerForStatusBarStyle;
- - (void)setNeedsStatusBarAppearanceUpdate
0 0
- <Error>: CGContextRestoreGState
- iOS 编译 <Error>: CGContextRestoreGState:
- CGContextRestoreGState() 的作用
- CGContextSaveGState与CGContextRestoreGState详解
- CGContextSaveGState与CGContextRestoreGState的功用
- CGContextSaveGState与CGContextRestoreGState的作用
- 图形上下文解释CGContextSaveGState/CGContextRestoreGState
- CGContextSaveGState与CGContextRestoreGState的作用
- CGContextSaveGState与CGContextRestoreGState的作用
- CGContextSaveGState与CGContextRestoreGState的作用
- CGContextSaveGState和CGContextRestoreGState UIGraphicsPushContext和UIGraphicsPopCo
- iOS CGContextSaveGState与CGContextRestoreGState的作用
- CGContextSaveGState与CGContextRestoreGState的作用 (转)
- 图形上下文保存与恢复(CGContextSaveGState与CGContextRestoreGState的)
- 【iOS开发-80】Quartz2D绘图简介:直线/圆形/椭圆/方形以及上下文栈管理CGContextSaveGState/CGContextRestoreGState
- Quartz2D绘图简介:直线/圆形/椭圆/方形以及上下文栈管理CGContextSaveGState/CGContextRestoreGState
- error
- Error
- Android WebView缓存
- Sublime Text 3 安装Package Control
- Android 6.0 中新的新技术
- android中listview的setAdapter()和getAdapter()
- 适配,限定符入门
- <Error>: CGContextRestoreGState
- Android 自定义权限 (<permission> <uses-permission>)
- Why my BroadcastReceiver does not get called? 收不到广播的问题
- OKCoin:2015年比特币的投资已达91.6亿美元
- Appium junit测试之定义case执行优先级
- 转 在Spring中定义了5中不同的事务隔离级别。
- android快速开发工具SelectorChapek安装使用教程
- 前端框架学习-jqgrid
- IOS MapKit学习笔记