`
bsr1983
  • 浏览: 1102310 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

ASIHTTPRequest

阅读更多
ASIHTTPRequest
1.下载最新版本
官网:http://allseeing-i.com/ASIHTTPRequest/
最新版本下载:http://allseeing-i.com/ASIHTTPRequest/
2.安装及使用
官网说明:http://allseeing-i.com/ASIHTTPRequest/Setup-instructions
1)在项目中创建新的Group,添加说明中所需的代码,根据项目类型是iphone还是Mac添加附加文件。
如果不能确定所需要的文件,那么将以下列表中的文件全部添加到项目中
ASIHTTPRequestConfig.h
ASIHTTPRequestDelegate.h
ASIProgressDelegate.h
ASICacheDelegate.h
ASIHTTPRequest.h
ASIHTTPRequest.m
ASIDataCompressor.h
ASIDataCompressor.m
ASIDataDecompressor.h
ASIDataDecompressor.m
ASIFormDataRequest.h
ASIInputStream.h
ASIInputStream.m
ASIFormDataRequest.m
ASINetworkQueue.h
ASINetworkQueue.m
ASIDownloadCache.h
ASIDownloadCache.m
iPhone 项目还必须包括:
ASIAuthenticationDialog.h
ASIAuthenticationDialog.m
Reachability.h (in the External/Reachability folder)
Reachability.m (in the External/Reachability folder)

2)添加ASIHTTPRequest中依赖的Frameworks
CFNetwork, SystemConfiguration, MobileCoreServices, CoreGraphics and zlib
3)使用说明及示例代码
http://allseeing-i.com/ASIHTTPRequest/How-to-use
4)编译错误处理
如果遇到编译错误类似:Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_ASIHTTPRequest",先检查上述的依赖代码是否已加入编译列表,如未加入,依次点击Target->Build Phases->Compile Sources,点击底部“+”添加上述代码。
如果遇到编译错误类似:Undefined symbols for architecture armv7:   "_inflateEnd", referenced from,则应该是缺少依赖libz.dylib,添加方法:依次点击Target->Build Phases->Compile Sources,点击底部“+”,在弹出的列表中输入libz,添加搜索结果中最新版本即可。

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics