ios afnetworking需要添加哪些依赖库

 我来答
neo0102
2016-08-20 · TA获得超过269个赞
知道小有建树答主
回答量:148
采纳率:0%
帮助的人:97万
展开全部
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

"
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式