01 2015 档案

摘要:1. 开启AppDelegate.h,并加入如下代码 1 #import 2 3 @interface AppDelegate : UIResponder 4 { 5 UITabBarController* tabBarViewC... 阅读全文
posted @ 2015-01-24 17:40 梦中人兰 阅读(131) 评论(0) 推荐(0)
摘要:如何通过URL获取json数据第一种,利用AFJSONRequestOperation,官方网站上给的例子: NSString *str=[NSString stringWithFormat:@"https://alpha-api.app.net/stream/0/posts/stream/glo... 阅读全文
posted @ 2015-01-21 21:42 梦中人兰 阅读(138) 评论(0) 推荐(0)
摘要:1 // 1、同步GET请求 2 3 // 第一步,创建URL 4 NSURL *url = [NSURL URLWithString:@"http://api.hudong.com/iphonexml.do?type=focus-c"]; 5 6 // ... 阅读全文
posted @ 2015-01-21 21:12 梦中人兰 阅读(132) 评论(0) 推荐(0)