IOS应用开发04——使用ASIHTTPRequest访问网络
来源:互联网 发布:网络单机游戏下载 编辑:程序博客网 时间:2024/06/08 08:04
ASIHTTPRequest是一个很优秀且功能强大的第三方套件,正如其自己介绍一样“Easy to use CFNetwork wrapper for HTTP requests, Objective-C, Mac OS X and iPhone”,而功用真正会让你体会到这句话的含义。
项目地址:https://github.com/pokeb/asi-http-request
官方主页:http://allseeing-i.com/ASIHTTPRequest/
一、引ASIHTTPRequest入项目
其实官方给出的教程已经很让人受用了(http://allseeing-i.com/ASIHTTPRequest/Setup-instructions)
当然我们可能会受语言限制,不过庆幸的是在网络上不乏这方面的文档和文集,同时也推荐一篇国语的(http://mobile.51cto.com/hot-403995.htm),请移步,当然下面还是简单的介绍下引入步骤。
1.下载到一个完整的asi-http-request-x.x.x.zip的压缩包
2.得到解压后文件中的Class与External文件夹
3.将Class中除了Test文件夹以外的所以文件,External中的Reachability两个文件拖入项目导航面板
4.在程序中使用#import "ASIHTTPRequest.h"
5.添加其依赖库:CFNetwork.framework、libz.dylib、libxml2.dylib等框架和类库
6.将/usr/include/libxml2/ 目录添加到文件的搜索路径中
二、使用ASIHTTPRequest
不得不说官方给的How to use 真的很详细(http://allseeing-i.com/ASIHTTPRequest/How-to-use),推荐大家去看一遍的,中文资料大把,不过大家可以去51cto看看这个专题(http://mobile.51cto.com/iphone-405168.htm)。
1.
- IOS应用开发04——使用ASIHTTPRequest访问网络
- iOS开发网络篇之:ASIHTTPRequest杂记
- iOS开发网络篇之:ASIHTTPRequest杂记
- ios网络开发之(ASIHttpRequest)
- 利用ASIHTTPRequest访问网络
- iOS开发ASIHttpRequest介绍(九)-- ASIHTTPRequest使用download cache
- ios开发之ASIHTTPRequest-使用download cache
- ios开发之ASIHTTPRequest-Cookie的使用
- iOS开发ASIHTTPRequest使用download cache
- iOS开发ASIHTTPRequest中Cookie的使用
- iOS开发ASIHTTPRequest中Cookie的使用
- iOS开发ASIHTTPRequest使用download cache
- iOS开发ASIHTTPRequest中Cookie的使用
- iOS开发asi使用(四)ASIHTTPRequest数据压缩
- iOS开发ASIHTTPRequest使用download cache【10】
- iOS开发:iOS网络编程--ASIHTTPRequest框架安装和配置
- IOS开发之—HTTP操作之ASIHTTPRequest(一)(一)
- ASIHTTPRequest的使用——网络请求缓存
- pwd命令
- Boost学习之CRC校验
- lvs基础学习
- mkdir命令
- Linux 后台守护进程
- IOS应用开发04——使用ASIHTTPRequest访问网络
- JAVA_WEB项目之Lucene检索框架实现增删查改的代码优化以及分页功能实现
- 工作日志2014-07-23
- c++编码规范(四)
- Ubuntu 下的PDF阅读器
- rm命令
- Study《Eclipse安装OpenExplorer插件》
- BlockReader in DFSClient
- c++编码规范(五)