开发者

UIGraphicsBeginImageContextWithOptions undeclared

Greetings!

I'm attempting to build an iPhone application that makes use of an iOS4-only function: 'UIGraphicsBeginImageConte开发者_开发百科xtWithOptions'.

I'm building for iPhone device 3.1.3 in XCode 3.2.1 and getting errors about that function not being defined.

This stackoverflow page already showed me that I should link weakly against UIKit and check that function for NULL, I am already doing this:

However, build still fails with:

UIGraphicsBeginImageContextWithOptions undeclared

Anyone have any idea?


You need to build against the iOS 4.x SDK, otherwise the compiler has no knowledge of that function.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜