网络请求 步骤
摘要:https://blog.csdn.net/ccflying88/article/details/50893639
阅读全文
posted @
2018-09-17 10:38
懂事长qingzZ
阅读(258)
推荐(0) 编辑
iOS - OC - XML 解析 - NSXMLParser
摘要://4.解析数据 //4.1 创建XML解析器:SAX NSXMLParser *parser = [[NSXMLParser alloc]initWithData:data]; //4.2 设置代理 parser.delegate = self; //4.3 开始...
阅读全文
posted @
2018-07-12 10:46
懂事长qingzZ
阅读(223)
推荐(0) 编辑
iOS - OC - JSON 解析 - NSJSONSerialization
摘要:1 #import "ViewController.h" 2 3 @interface ViewController () 4 5 @end 6 7 @implementation ViewController 8 9 -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event 10...
阅读全文
posted @
2018-07-11 11:58
懂事长qingzZ
阅读(422)
推荐(0) 编辑
iOS - OC - 网络请求 - 中文转码
摘要:1 #import "ViewController.h" 2 3 @interface ViewController () 4 5 @end 6 7 @implementation ViewController 8 9 #pragma mark ---------------------- 10 #pragma mark Events 11 -(void)touches...
阅读全文
posted @
2018-07-11 10:32
懂事长qingzZ
阅读(552)
推荐(0) 编辑
OC -网络请求 - NSURLConnection - POST
摘要:1 #import "ViewController.h" 2 3 @interface ViewController () 4 5 @end 6 7 @implementation ViewController 8 -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event 9 { 10 [sel...
阅读全文
posted @
2018-07-10 19:49
懂事长qingzZ
阅读(479)
推荐(0) 编辑
OC -网络请求 - NSURLConnection - GET
摘要:1 #import "ViewController.h" 2 3 @interface ViewController () 4 /** 注释 */ 5 @property (nonatomic, strong) NSMutableData *resultData; 6 @end 7 8 @implementation ViewController 9 ...
阅读全文
posted @
2018-07-10 19:43
懂事长qingzZ
阅读(293)
推荐(0) 编辑