摘要: 第一个部分关于数据获取。 通过网络获取数据的方法,有两种,一种是通过NSRUL,NSURLREQUEST,NSURLCONNECTION的方法获取。另一种方法是直接通过NSData的initContentwithURL或dataWithContentsOfURL的方法。描述如下:方法1: NSString *googleURL =@"http://www.weather.com.cn/data/cityinfo/101070101.html"; NSURL *url = [NSURL URLWithString:googleURL]; NSURLRequest *reque 阅读全文
posted @ 2013-08-11 11:09 寒剑飘零 阅读(1279) 评论(1) 推荐(2) 编辑