摘要: Creating Custom Content View Controllers创建自定义内容视图控制器Custom content view controllers are the heart of your app. You use them to present your app’s unique content. All apps need at least one custom content view controller. Complex apps divide the workload between multiple content controllers.自定义内容视图控制 阅读全文
posted @ 2013-09-16 09:48 cainiaozhang 阅读(845) 评论(0) 推荐(0) 编辑
摘要: Using View Controllers in Your AppWhether you are working with view controllers provided by iOS, or with custom controllers you’ve created to show your app’s content, you use a similar set of techniques to actually work with the view controllers.不管你是使用iOS提供的视图控制器,或是使用你创建的用来显示应用程序内容的自定义控制器,使用视图控制器的技术 阅读全文
posted @ 2013-08-26 13:05 cainiaozhang 阅读(1158) 评论(0) 推荐(0) 编辑
摘要: View Controller BasicsApps running on iOS–based devices have a limited amount of screen space for displaying content and therefore must be creative in how they present information to the user. Apps that have lots of information to display must therefore only show a portion to start, and then show an 阅读全文
posted @ 2013-08-24 16:42 cainiaozhang 阅读(1498) 评论(0) 推荐(0) 编辑
摘要: About View ControllersView controllers are a vital link between an app’s data and its visual appearance. Whenever an iOS app displays a user interface, the displayed content is managed by a view controller or a group of view controllers coordinating with each other. Therefore, view controllers provi 阅读全文
posted @ 2013-08-21 09:18 cainiaozhang 阅读(921) 评论(0) 推荐(0) 编辑
摘要: UICollectionView 类:Inherits fromUIScrollView:UIView:UIResponder:NSObjectConforms toNSCoding (UIScrollView)NSCoding (UIView)UIAppearance (UIView)UIAppearanceContainer (UIView)NSObject (NSObject)Framework/System/Library/Frameworks/UIKit.frameworkAvailabilityAvailable in iOS 6.0 and later.Declared inUI 阅读全文
posted @ 2013-08-18 13:44 cainiaozhang 阅读(1315) 评论(0) 推荐(0) 编辑
摘要: A Closer Look at Table View CellsA table view uses cell objects to draw its visible rows and then caches those objects as long as the rows are visible. Cells inherit from theUITableViewCellclass. The table view’sdata sourceprovides the cell objects to the table view by implementing thetableView:cell 阅读全文
posted @ 2013-08-14 16:56 cainiaozhang 阅读(804) 评论(0) 推荐(0) 编辑
摘要: Creating and Configuring a Table ViewYour app must present a table view to users before it can manage it in response to taps on rows and other actions. This chapter shows what you must do to create a table view, configure it, and populate it with data.在应用程序能管理响应行上的点击以及其它操作之前,必须给用户呈现一个表格视图。本章显示了创建一个表 阅读全文
posted @ 2013-08-13 14:04 cainiaozhang 阅读(996) 评论(0) 推荐(0) 编辑
摘要: Navigating a Data Hierarchy with Table Views导航数据表视图层次A common use of table views—and one to which they’re ideally suited—is to navigate hierarchies of data. A table view at a top level of the hierarchy lists categories of data at the most general level. Users select a row to “drill down” to the next 阅读全文
posted @ 2013-08-11 14:55 cainiaozhang 阅读(639) 评论(0) 推荐(0) 编辑
摘要: Overview of the Table View API表格视图API概述The table view programming interface includes several UIKit classes, two formalprotocols, and acategoryadded to a Foundation framework class.表格视图编程接口包括好几个UIKit类,两个正式的协议以及添加到Foundation 框架类的一个类别(category)。Table View一、表格视图A table view itself is an instance of theU 阅读全文
posted @ 2013-08-11 13:03 cainiaozhang 阅读(590) 评论(0) 推荐(0) 编辑
摘要: Table View Styles and Accessory Views表格视图的风格以及辅助视图Table views come in distinctive styles that are suitable for specific purposes. In addition, the UIKit framework provides standard styles for the cells used to draw the rows of table views. It also gives you standard accessory views (that is, control 阅读全文
posted @ 2013-08-11 10:57 cainiaozhang 阅读(764) 评论(0) 推荐(0) 编辑