摘要: 准备URL NSString *urlStr = self.textField.text;根据URL来准备一个请求对象 NSURL *url = [NSURL URLWithString:urlStr];发送请求 NSURLRequest *request = [NSURLRequest reque... 阅读全文
posted @ 2015-06-10 16:27 app珊 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 概念:如何将NSString转化成NSData(将字符串转化成二进制数据)NSString *str = @"ABCDE"; NSData *data = [str dataUsingEncoding:NSUTF8StringEncoding]; NSLog(@"%d",data.len... 阅读全文
posted @ 2015-06-10 15:51 app珊 阅读(145) 评论(0) 推荐(0) 编辑
摘要: - (IBAction)blockQueue:(UIButton *)sender { NSOperationQueue *queue = [[NSOperationQueue alloc]init]; NSBlockOperation * operation = [NSBloc... 阅读全文
posted @ 2015-06-10 12:04 app珊 阅读(888) 评论(0) 推荐(0) 编辑
摘要: 创建NSOperationQueue 对象NSOperationQueue *queue = [[NSOperationQueue alloc]init];创建NSInvocationOperation对象NSInvocationOperation *operation = [[NSInvocati... 阅读全文
posted @ 2015-06-10 11:47 app珊 阅读(127) 评论(0) 推荐(0) 编辑