use*_*667 5 debugging xcode ios swift ios9
我收到以下错误:
<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.
Run Code Online (Sandbox Code Playgroud)
环顾四周之后,似乎是由以下原因引起的:
UIViewControllerBasedStatusBarAppearance在Info.plist中
Soruce:苹果开发论坛
当我通读该主题时,我看到一个苹果开发回应: - "你可能会忽略这个警告."
但除了从Info.plist文件中删除UIViewControllerBasedStatusBarAppearance之外,还有什么解决方法吗?我需要它以便在我的VC中保持状态栏为白色,我不想忽略警告.
| 归档时间: |
|
| 查看次数: |
341 次 |
| 最近记录: |