: CGContextSetFillColorWithColor: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
: CGContextSetStrokeColorWithColor: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
类似的错误会有:
- CGContextSaveGState
- CGContextSetFlatness
- CGContextAddPath
- CGContextDrawPath
- CGContextRestoreGState
- CGContextSaveGState
- CGContextSetFlatness
- CGContextAddPath
- CGContextDrawPath
- CGContextRestoreGState
- CGContextSetFillColorWithColor
- CGContextSetStrokeColorWithColor
- CGContextSetFillColorWithColor
- CGContextSetStrokeColorWithColor
- CGContextGetBlendMode
- CGContextSetBlendMode
- 等等……
我的应用程序中没有使用任何CGContext相关的内容。我只有一个UITextView,一个UIButton和一个UILabel,并且还没有添加太多代码。只是通过以下方式设置UITextView的内容:
[self.text_view setText:@"123"];
如何解决错误?
我正在使用Xcode 5.0(版本号5A1413),iOS 7模拟器(64位Retina 4“)和Mac OS X 10.8.5。
UITextField
也受到影响,但是没有人提供有效的解决方案。我认为这是一个误报。 - Raptor