I can't believe how much trouble I am having finding this:
I want to use NSLog()
what do I have to #import
and what library do I link to?
thanks in advance,
Jay
Go to http://developer.apple.com and in the search box type NSLog(). This takes you to the Foundation functions which documents this.
So the #import
you are looking for is:
#import <Foundation/Foundation.h>
or, if you are on Xcode 5 and have module support turned on:
@import Foundation;