警告:Instance method 'renderInContext:' not found的解决办法

练习PhotoCapture Application in iPhone 实践时,碰到renderInContext警告。

[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];

Xcode4.3弹出警告:Instance method '-renderInContext:' not found

解决办法:

#import <QuartzCore/QuartzCore.h>

原文地址:https://www.cnblogs.com/lovecode/p/2221910.html