大佬教程收集整理的这篇文章主要介绍了Swift ios9是否有任何修复UIViewControllerBasedStatusBarAppearance导致错误,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
<Error>: CGContextSaveGState: invalid context 0x0. If you want to see the BACktrace,please set CG_COntexT_SHOW_BACKTRACE environmental variable. <Error>: CGContextTranslateCTM: invalid context 0x0. If you want to see the BACktrace,please set CG_COntexT_SHOW_BACKTRACE environmental variable. <Error>: CGContextRestoreGState: invalid context 0x0. If you want to see the BACktrace,please set CG_COntexT_SHOW_BACKTRACE environmental variable.
环顾四周之后,似乎是由以下原因引起的:
Info.plist中的UIViewControllerBasedStatusBarAppearance
Soruce:apple dev forum
当我通读该帖子时,我看到一个苹果开发回应:
– “你可以忽略这个警告.”
但除了从Info.plist文件中删除UIViewControllerBasedStatusBarAppearance之外,还有什么解决方法吗?
我需要它以便在我的VC中保持状态栏为白色,我不想忽略警告.
以上是大佬教程为你收集整理的Swift ios9是否有任何修复UIViewControllerBasedStatusBarAppearance导致错误全部内容,希望文章能够帮你解决Swift ios9是否有任何修复UIViewControllerBasedStatusBarAppearance导致错误所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。