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

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -