Fork me on GitHub

2012年5月13日

摘要: origion:http://www.alterplay.com/ios-dev-tips/2009/10/asynchronous-uiimage.htmlEverybody needed or will need to load images from web. The easiest way to do it is to get NSData from NSURL and create UIImage:UIImage *myImage = [[UIImage alloc] initWithData:[NSData dataWithContentsOfURL:[NSURL URLWithS 阅读全文
posted @ 2012-05-13 23:43 pengyingh 阅读(357) 评论(0) 推荐(0)
摘要: A good example for using allocWithZone: is when you are implementing the NSCopy protocol, which allows you make your custom objects copyable (deep copy / copy by value) like: ClassName *newObject = [currentObject copy]; //results in newObject being a copy of currentObject not just a reference to itT 阅读全文
posted @ 2012-05-13 23:08 pengyingh 阅读(454) 评论(0) 推荐(0)

导航