I heard that the .pch
is good for putting macros and constants definitions, so for its default content:
#import <Availability.h>
#ifndef __IPHONE_4_0
#warning "This project uses features only available in iOS SDK 4.0 and later."
#endif
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#endif
where should the definitions be put in? It is strange that it seems to be importing UIKit.h
, but ViewController.h
also import that same file (I thought the .pch
is imported by all files by default? So ViewController.h
shouldn't need to import UIKit.h
again)