<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.
编译时没问题。运行时我已经在AppDelegate设置了断点,但没有一处是在这些错误发生之前能运行到的,甚至是在applicationDidBecomeActive设置断点,我也不知道这些错误到底是在哪一步发生的。
方案推荐指数:40
iOS的BUG,苹果官方说可以忽略这个警告。详情链接:
https://forums.developer.apple.com/thread/13683