By default, the data source of a table view is its controller. In the case of this application, the RootViewController is currently the data source for the table view. In this lesson, you will implement the UITableViewDataSource protocol in the DataAccess class. This way, the DataAccess class will be responsible for providing the table view with the data it requires.
To begin, add the protocol to the DataAccess header.
@interface DataAccess : NSObject <UITableViewDataSource> { ULConnection * connection; } |
Discuss this page in DocCommentXchange.
|
Copyright © 2010, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.0 |