BlueDolphin
BlueDolphin

Reputation: 9765

Problem with #Import <AppKit/AppKit.h> in Xcode

I need to use NSImage which appears need to be imported from <AppKit/AppKit.h>. I have included the AppKit framework, and I do see AppKit.h there. But I am still getting compilation error saying <AppKit/AppKit.h> not found.

What I might missed ?

Thanks.

Upvotes: 2

Views: 5546

Answers (1)

Louis Gerbarg
Louis Gerbarg

Reputation: 43462

AppKit is not available on the iPhone, nor is NSIMage. You need to bring in UIKit and use UIImage.

Upvotes: 5

Related Questions