UIKit.h and Foundation.h in Objective-C -


if import uikit.h automatically import foundation.h?

uikit.h doesn't explicitly include it, wouldn't surprised if 1 of other uikit headers does.

however, of files have anyway, because default pch (precompiled header, or header that's automatically added every file in project) comes this:

#ifdef __objc__     #import <foundation/foundation.h>     #import <uikit/uikit.h> #endif 

this means every file in iphone app automatically have foundation , uikit imported.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -