AFNetWorking的使用配置

1首先要把AFNETWORK 导入到你的工程中 就是那19个文件afnetworking 文件夹

2然后还要在工程里面引出2个新的framwork ,SystemConfiguration/System和MobileCoreServices

3很重要的一步在你的In "YOURPROJECTNAME-Prefix.pch" file include this code

导入
#import <SystemConfiguration/SystemConfiguration.h>
#import <MobileCoreServices/MobileCoreServices.h>

基本上就是这样子然后你就可以使用了 你的工程需要什么功能就在你的class里面的头文件添加什么功能的引用

如果你出现了下面AFNETWORKING的警告的话请重复安装上面的
"

#else

    #warning SystemConfiguration framework not found in project, or not included in precompiled header. Network reachability functionality will not be available.

#endif

 

#ifndef __UTTYPE__

    #if __IPHONE_OS_VERSION_MIN_REQUIRED

        #warning MobileCoreServices framework not found in project, or not included in precompiled header. Automatic MIME type detection when uploading files in multipart requests will not be available.

    #else

        #warning CoreServices framework not found in project, or not included in precompiled header. Automatic MIME type detection when uploading files in multipart requests will not be available.

    #endif

#endif


"
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值