摘要:
Chapter 27 Controlling Animations1. The simplest block-based animation method on UIView is animateWithDuration:animations:. This method takes in the d... 阅读全文
摘要:
Chapter 23 Core Data1. Core Data is only able to store certain data types in its store, and UIImage is not one of these types. Instead, you declared t... 阅读全文
摘要:
Chapter 21 WebServices and UIWebView1. Usually, fetch data from a web server using four handy classes: NSURL, NSURLRequest, NSURLSessionTask, and NSUR... 阅读全文
摘要:
Chapter 20 Dynamic Type1. The Dynamic Type system is centered around text styles. When a font is requested for a given text style, the system will use... 阅读全文
摘要:
Chapter 19 Subclassing UITableViewCell1. iOS provides a convenient suite of functions to create offscreen contexts and produce images from them. To cr... 阅读全文
摘要:
#pragma mark - Set thumbnailImage-(UIImage*)setThumbnailFromImage:(UIImage *)image{ CGSize origImageSize = image.size; // The rectangle of t... 阅读全文
摘要:
Chapter 18 Saving, Loading, and Application State1. Archiving is one of the most common ways of persisting model objects on iOS. Archiving an object i... 阅读全文
摘要:
Chapter 17 Autorotation, Popover Controller, and Modal View Controllers1.There are two distinct orientations in iOS: device orientation and interface ... 阅读全文
摘要:
Chapter 16 Auto layout: Programmatic Constraints1. The line of code regarding translating constraints has to do with an older system for scaling inter... 阅读全文