- 博客(6)
- 收藏
- 关注
转载 tableview 图片异步加载
.h #import @interface AsynImageView : UIImageView { NSURLConnection *connection; NSMutableData *loadData; } //图片对应的缓存在沙河中的路径 @property (nonatomic, retain) NSString *fileName; //指定默认未加载时,显示
2016-01-31 10:53:12 373
原创 网络请求
//get请求 NSString *urlStr=[NSString stringWithFormat:@"http://192.168.1.53:8080/MJServer/login?username=zc&pwd=888888"]; NSURL *url =[NSURL URLWithString:urlStr]; NSURLRequest *request =[NS
2016-01-30 15:41:42 377
原创 tableview 加载图片卡顿问题
- (void)loadImageFromURL:(NSURL*)url { NSURLRequest* request = [NSURLRequest requestWithURL:url cachePolicy:NSURLRequestUseProtocolCachePolicy
2016-01-28 17:34:11 1489
原创 GCD 线程的应用
//用异步函数往并发队列中添加任务 //获得全局的并发队列 dispatch_queue_t queue =dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0); dispatch_async(queue, ^{ NSLog(@"1----------%@",[NSThread curre
2016-01-28 14:22:08 376
原创 UIWebview 和加载的圈
//初始化webview webview =[[UIWebView alloc]initWithFrame:CGRectMake(0, 0, 320, 480)]; webview.delegate =self; NSURLRequest *request =[NSURLRequest requestWithURL:[NSURL URLWithString:@"http:
2016-01-14 15:18:33 387
原创 Undefined symbols for architecture armv7问题
搜索粉红色的关键字,其对应的框架没有被添加到工程中,在Build Phases →Link Binary With LibLibraries 中点击+添加即可
2016-01-06 17:14:44 397
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人