2012年3月31日

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) 编辑

A simple COCOA Asynchronous image loader class to use in your iPhone app.

摘要: This isnt a tutorial, this is just some source code that you might find useful. This class will load images in the background so it wont lock your UI up!UPDATED:Please note that this post has a new updated version found here:UIImage From URL – Simplified (Using Blocks)Here’s the header file :@interf 阅读全文

posted @ 2012-03-31 22:35 kiao295338444 阅读(172) 评论(0) 推荐(0) 编辑

App design tip – Custom UINavigationBar

摘要: 转自:http://ios-blog.co.uk/category/tutorials/app-design-tip-custom-uinavigationbar/Always wondered how to change the default UINavigationBar for something cooler? Maybe something likeInstagramorSyncListen?There is quite an easy way to do that. All you need to do is to override one method. You can eit 阅读全文

posted @ 2012-03-31 22:21 kiao295338444 阅读(261) 评论(0) 推荐(0) 编辑

core data Refaulting

摘要: RefaultingOne way to take control of your application’s persistent data and memory use is to turn managed objects back into faults, thereby relinquishing the memory its data was occupying. You turn ob... 阅读全文

posted @ 2012-03-31 15:12 kiao295338444 阅读(175) 评论(0) 推荐(0) 编辑

core data firing fault

摘要: 摘自:pro core data for iosCore Data uses the term firing faults when it must pull the data from the persistent store that a fault points to and then put it into memory. Core Data has ‘‘fired’’ off a req... 阅读全文

posted @ 2012-03-31 15:02 kiao295338444 阅读(200) 评论(0) 推荐(0) 编辑

导航