若是想再在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