摘要: Chapter 27 Controlling Animations1. The simplest block-based animation method on UIView is animateWithDuration:animations:. This method takes in the d... 阅读全文
posted @ 2014-10-06 15:07 1oo1 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2014-10-05 21:48 1oo1 阅读(146) 评论(0) 推荐(0) 编辑
摘要: Chapter 21 WebServices and UIWebView1. Usually, fetch data from a web server using four handy classes: NSURL, NSURLRequest, NSURLSessionTask, and NSUR... 阅读全文
posted @ 2014-10-05 13:29 1oo1 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2014-10-04 22:45 1oo1 阅读(186) 评论(0) 推荐(0) 编辑
摘要: Chapter 19 Subclassing UITableViewCell1. iOS provides a convenient suite of functions to create offscreen contexts and produce images from them. To cr... 阅读全文
posted @ 2014-10-04 19:29 1oo1 阅读(116) 评论(0) 推荐(0) 编辑
摘要: #pragma mark - Set thumbnailImage-(UIImage*)setThumbnailFromImage:(UIImage *)image{ CGSize origImageSize = image.size; // The rectangle of t... 阅读全文
posted @ 2014-10-04 02:05 1oo1 阅读(496) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2014-10-03 22:56 1oo1 阅读(199) 评论(0) 推荐(0) 编辑
摘要: Chapter 17 Autorotation, Popover Controller, and Modal View Controllers1.There are two distinct orientations in iOS: device orientation and interface ... 阅读全文
posted @ 2014-10-02 16:46 1oo1 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 调试用的iPad mini 被同事不小心更升级到了8.0。然后,今天调试半天程序一直崩溃,查了半天愣是没有找到原因。无意中撇到Organizer 中的 Device 版本竟然是8了,卧槽,找另一个7.1.2的机器试了下,一切ok啊。下班后下载了7.1.2的固件,回退失败!网上查到几天前苹果把shsh... 阅读全文
posted @ 2014-10-01 00:28 1oo1 阅读(117) 评论(0) 推荐(0) 编辑
摘要: Chapter 16 Auto layout: Programmatic Constraints1. The line of code regarding translating constraints has to do with an older system for scaling inter... 阅读全文
posted @ 2014-09-25 16:17 1oo1 阅读(360) 评论(0) 推荐(0) 编辑