代码改变世界

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

2011-10-23 17:40  张智清  阅读(2303)  评论(0编辑  收藏  举报

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

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

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

解决办法:

#import <QuartzCore/QuartzCore.h>