从0开始架构一个IOS程序 03分包用添加pch全局引用文件
Mac OSX 10.11 之后
PCH文件简介:
PCH文件是Xcode编程中全局引用共享的文件。可以在这里引入头文件或者宏定义来方便程序中多个文件访问。
PCH文件创建:
打开工程 New File… -> iOS Other -> PCH File 输入PCH文件名字即可。
1 PCH文件配置:
2 PCH文件常用:
//
// common.pch
// base_test
//
// Created by androidlongs on 17/8/7.
// Copyright © 2017年 androidlongs. All rights reserved.
//
#ifndef common_pch
#define common_pch
// Include any system framework and library headers here that should be included in all compilation units.
// You will also need to set the Prefix Header build setting of one or more of your targets to reference this file.
#import "SINAMd5Utils.h"
#import "AFNetworking.h"
#import "MJRefresh.h"
#import "CXAFNHttpRequestUtils.h"
#import "Masonry.h"
#import "Common.h"
#import "YYKit.h"
#import "NSObject+YYModel.h"
#import "WISAlertView.h"
//http网络请求
#import "HttpHelper.h"
//常用动画工具类
#import "WISAnimationUtils.h"
//常用弹框
#import "WISProgressView.h"
//加载图片框架
#import "UIImageView+WebCache.h"
//NavViewController 基类
#import "CXBaseNavViewController.h"
//ViewController 基类
#import "CXBaseViewController.h"
//图片操作工具类
#import "SINAUIImageUtils.h"
//本地用户管理信息类
#import "SINACommonUserHelper.h"
//加载等待提示框
#import "YPXLoaddingView.h"
//短消息提示框
#import "YPXToastView.h"
#endif /* common_pch */