开发者

UIGraphicsBeginImageContextWithOptions undeclared

开发者 https://www.devze.com 2023-01-25 13:53 出处:网络
Greetings! I\'m attempting to build an iPhone application that makes use of an iOS4-only function: \'UIGraphicsBeginImageConte开发者_开发百科xtWithOptions\'.

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

精彩评论

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