我有一个UIImageView
,UIViewController
想在现有的 imageView 上添加一个简单的图像。
viewDidLoad 方法如下所示:
UIImage *test;
test = [UIImage imageNamed:@"position-dot.png"];
[test drawAtPoint:CGPointMake(100,100) ];
我收到的部分错误消息如下所示:
CGContextSaveGState: 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.
CGContextSetBlendMode: invalid context 0x0. This is a serious error
.
我测试了重置我的iOS模拟器(其他线程中的解决方案),但这并没有解决问题。