摘要: AFNetwork是一个轻量级的网络请求api类库。是以NSURLConnection, NSOperation和其他方法为基础的。下面这个例子是用来处理json请求的:NSURL *url = [NSURL URLWithString:@"https://alpha-api.app.net/stream/0/posts/stream/global"];NSURLRequest *request = [NSURLRequest requestWithURL:url];AFJSONRequestOperation *operation = [AFJSONRequestOper 阅读全文
posted @ 2013-03-22 16:50 cateatmycode 阅读(964) 评论(0) 推荐(0) 编辑
摘要: 1:在github上下载https://github.com/yjxsf8313/asi-http-request2:引入1)在项目下新建一个Group,命名为ASIHttp,鼠标右击,选中“Add files to ....”,将下载的ASIHttprequest库中的class文件夹都引用进来,并将Externl文件夹中的Reachability添加到class下。留下ASIWebPageRequest这个文件夹,其他的都删掉2)添加ASIHttprequest的依赖Frameworks:SystemConfiguration.framework, MobileCoreServices.f 阅读全文
posted @ 2013-03-22 15:09 cateatmycode 阅读(339) 评论(0) 推荐(0) 编辑