坑爹的IOS9来了,新功能没见咋地,带来一大堆麻烦!
下面就是常见错误之一
<Error>: CGContextSaveGState: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
Sep 21 16:35:09
<Error>: CGContextTranslateCTM: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
Sep 21 16:35:09
<Error>: CGContextRestoreGState: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
解决这个错误的操作就是进入info.plist文件,删除key UIViewControllerBasedStatusBarAppearance,如下图: