摘要: iOS Programming Introduction to Auto Layout 自动布局 A single application that runs natively on both the iPad and the iPhone is called a universal application. 一个原生的能运行在iPad 和iPhone 的应用叫做universal ap... 阅读全文
posted @ 2015-05-17 16:51 巴山夜雨1989 阅读(780) 评论(0) 推荐(1) 编辑
摘要: iOS Programming UIGestureRecognizer and UIMenuController A UIGestureRecognizer intercepts touches that are on their way to being handled by a view. 一个UIGestureRecognizer拦截touches 在他们被一个view处理的路上。 Wh... 阅读全文
posted @ 2015-05-15 15:00 巴山夜雨1989 阅读(462) 评论(0) 推荐(0) 编辑
摘要: iOS Programming Touch Events and UIResponder 1 Touch Events As a subclass of UIResponder, a UIView can override four methods to handle the four distinct touch events: 作为UIResponder的一个子类,UIView可以重... 阅读全文
posted @ 2015-05-14 11:40 巴山夜雨1989 阅读(397) 评论(0) 推荐(0) 编辑
摘要: iOS Programming Camera 2 1.1 Creating BNRImageStore The image store will fetch and cache the images as they are needed. It will also be able to flush the cache if the device runs low on memory. ... 阅读全文
posted @ 2015-05-14 08:43 巴山夜雨1989 阅读(186) 评论(0) 推荐(0) 编辑
摘要: iOS Programming Camera 1 1 Displaying Images and UIImageView 1.1 put an instance of UIImageView on the screen. Then drag an instance of UIImageView onto the view and position it below the ... 阅读全文
posted @ 2015-05-14 08:42 巴山夜雨1989 阅读(307) 评论(0) 推荐(0) 编辑
摘要: iOS Programming UINavigationControllerthe Settings application has multiple related screens of information: a list of settings (like Sounds), a detail... 阅读全文
posted @ 2015-05-13 13:46 巴山夜雨1989 阅读(395) 评论(0) 推荐(0) 编辑
摘要: iOS Programming Editing UITableView 1.1 Editing mode UITableView has an editing property, and when this property is set to YES, the UITableView enters editing mode. UITableVIew有一个editing proper... 阅读全文
posted @ 2015-05-12 16:38 巴山夜雨1989 阅读(281) 评论(0) 推荐(0) 编辑
摘要: iOS programming Code Snippet Library The freebie code comes from the code snippet library. 代码来自code snippet library。 Notice that there are a number of code snippets available 有许多code snippets availa... 阅读全文
posted @ 2015-05-12 09:34 巴山夜雨1989 阅读(188) 评论(0) 推荐(0) 编辑
摘要: iOS programming UITableView and UITableViewController A UITableView displays a single column of data with a variable number of rows. UITableView 展示单列数据和不定数量的行。 Create a new iOS Empty Application p... 阅读全文
posted @ 2015-05-12 09:33 巴山夜雨1989 阅读(486) 评论(0) 推荐(0) 编辑
摘要: iOS programming Delegation and Text Input 1.1 Text Fields CGRect textFieldRect = CGRectMake(40, 70, 240, 30);UITextField *textField = [[UITextField alloc] initWithFrame:textFieldRect]; // Setti... 阅读全文
posted @ 2015-05-11 14:02 巴山夜雨1989 阅读(268) 评论(0) 推荐(0) 编辑