若是想再在ios项目中引用MKNetworkKit框架,步骤以下:ios
#import <UIKit/UIKit.h> #import <Foundation/Foundation.h> #import "MKNetworkKit.h"
若是是xcode6以上不自动生成pch文件,须要本身建立ctrl+n 6. 将pch文件添加到配置,在Build Settings的Prefix Header中配置pch的路径,格式为:项目名/XXX.pch 7. 能够使用这个框架了,若是报“The resource could not be loaded because the App Transport Security policy requir”, 解决办法是:在Info.plist中添加NSAppTransportSecurity类型Dictionary。 在NSAppTransportSecurity下添加NSAllowsArbitraryLoads类型Boolean,值设为YESgit