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 implement the UITableViewDataSource protocol in the DataAccess class. This way, the DataAccess class is responsible for providing the table view with the data it requires.
To begin, add the UITableViewDataSource protocol to the interface.
@interface DataAccess : NSObject <UITableViewDataSource> { ULConnection * connection; } |
Discuss this page in DocCommentXchange.
|
Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |