0

Greetings!

I'm attempting to build an iPhone application that makes use of an iOS4-only function: 'UIGraphicsBeginImageContextWithOptions'.

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:

Anyone have any idea?

Community
  • 1
  • 1
Daniel Sloof
  • 12,568
  • 14
  • 72
  • 106

1 Answers1

2

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

grahamparks
  • 16,130
  • 5
  • 49
  • 43