标签:异步请求与异步刷新
异步请求
[NSURLConnection sendAsynchronousRequest:request queue:[[NSOperationQueue alloc]init] completionHandler:^(NSURLResponse *response, NSData *data, NSError *connectionError) {
//可以看data里的值
NSLog(@"data = %@",[[NSString alloc] initWithData:data encoding:4]);
}];
异步刷新
[self.tableView performSelectorOnMainThread:@selector(reloadData) withObject:self waitUntilDone:YES];
本文出自 “嵌入式” 博客,请务必保留此出处http://5828666.blog.51cto.com/5818666/1433718
标签:异步请求与异步刷新
原文地址:http://5828666.blog.51cto.com/5818666/1433718