UIImage From URL – Simplified (Using Blocks)
摘要:
void UIImageFromURL( NSURL * URL, void (^imageBlock)(UIImage * image), void (^errorBlock)(void) ){ dispatch_async( dispatch_get_global_queue( DISPATCH_QUEUE_PRIORITY_DEFAULT, 0 ), ^(void) { NSData * data = [[[NSData alloc] initWithContentsOfURL:URL] autorelease]; UIImage * image = [[[UIImage... 阅读全文
posted @ 2012-03-31 22:37 kiao295338444 阅读(525) 评论(0) 推荐(0) 编辑