Friday, 16 September 2016

Add Prefix Header In Application

Add Prefix Header In Application





Go to New File > iOS > Other > PCH File

Name : - YorAppName-prefix


Then Add Framework Which You Need for Example :-


#ifndef MyDemoApp_prefix_pch
#define MyDemoApp_prefix_pch


#endif /* MyDemoApp_prefix_pch */


#import <Availability.h>

#ifndef __IPHONE_5_0
#warning "This project uses features only available in iOS SDK 5.0 and later."
#endif

#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import "Constant.h"
#import "AppDelegate.h"
#endif


Then Add It in Setting Given Below :-


Add Name : - $(SRCROOT)/MyDemoApp-prefix.pch








No comments:

Post a Comment