ios afnetworking需要添加哪些依赖库
答案:1 悬赏:30 手机版
解决时间 2021-11-17 17:29
- 提问者网友:十年饮冰
- 2021-11-16 19:49
ios afnetworking需要添加哪些依赖库
最佳答案
- 五星知识达人网友:狂恋
- 2021-11-16 21:11
1首先要把AFNETWORK 导入到你的工程中 就是那19个文件afnetworking 文件夹
2然后还要在工程里面引出2个新的framwork ,SystemConfiguration/System和MobileCoreServices
3很重要的一步在你的In "YOURPROJECTNAME-Prefix.pch" file include this code
导入
#import
#import
基本上就是这样子然后你就可以使用了 你的工程需要什么功能就在你的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
"
2然后还要在工程里面引出2个新的framwork ,SystemConfiguration/System和MobileCoreServices
3很重要的一步在你的In "YOURPROJECTNAME-Prefix.pch" file include this code
导入
#import
#import
基本上就是这样子然后你就可以使用了 你的工程需要什么功能就在你的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
"
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯