iOS: AFNetworking手动配置(iOS7.1, AF2.2.4)

一、下载AFNetworking.

二、将AFNetworking-master下的AFNetworking目录拖入到项目中

三、为项目添加Linking to a Library or Framework

CoreLocation.framework
SystemConfiguration.framework
Security.framework
MobileCoreServices.framework

四、修改项目.pch文件

iOS: AFNetworking手动配置(iOS7.1, AF2.2.4)
1 #ifdef __OBJC__
2     #import <UIKit/UIKit.h>
3     #import <Foundation/Foundation.h>
4     //添加AFNetworking包预编译头
5     #import <SystemConfiguration/SystemConfiguration.h>
6     #import <MobileCoreServices/MobileCoreServices.h>
7     #import "AFNetworking.h"
8 #endif
iOS: AFNetworking手动配置(iOS7.1, AF2.2.4)

五、在相应的文件中加入引入

iOS: AFNetworking手动配置(iOS7.1, AF2.2.4)
    #import "AFNetworking.h"
iOS: AFNetworking手动配置(iOS7.1, AF2.2.4)

 



iOS: AFNetworking手动配置(iOS7.1, AF2.2.4),布布扣,bubuko.com

iOS: AFNetworking手动配置(iOS7.1, AF2.2.4)

上一篇:.Net 转战 Android 4.4 日常笔记目录


下一篇:iOS调试 - 基本技巧