缺省情况下,表视图的数据源就是其控制器。在此应用程序的情况下,RootViewController 当前是表视图的数据源。在本课中,您将在 [DataAccess] 类中实现 [UITableViewDataSource] 协议。这样,[DataAccess] 类将负责向表视图提供所需的数据。
要开始操作,将 [UITableViewDataSource] 协议添加到界面。
@interface DataAccess : NSObject <UITableViewDataSource> { ULConnection * connection; } |
![]() |
使用DocCommentXchange讨论此页。
|
版权 © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |