objective c - Cocoa frameworks that don't need to be #imported -
i noticed after adding frameworks project in xcode, don't have import of header files in order access classes. how come classes "magically" available without import?
look yourprojectname-prefix.pch
file. there you'll find:
#ifdef __objc__ #import <uikit/uikit.h> #import <foundation/foundation.h> #endif
inside #ifdef
statement can add files automatically imported throughout whole project.
Comments
Post a Comment