iOS与桌面Cocoa应用开发:从iTahDoodle到TahDoodle
1. iTahDoodle应用开发
在开发iTahDoodle应用时,我们首先要解决的是让屏幕上的表格视图显示数据。表格视图本身只是一个视图对象,不包含实际数据,因此需要一个数据源对象。在iTahDoodle中, BNRAppDelegate 实例将作为表格视图的数据源。
以下是具体的操作步骤:
1. 设置数据源 :在 BNRAppDelegate.m 文件的 application:didFinishLaunchingWithOptions: 方法中,将 BNRAppDelegate 实例设置为表格视图的数据源。
// Create and configure the table view
taskTable = [[UITableView alloc] initWithFrame:tableFrame
style:UITableViewStylePlain];
[taskTable setSeparatorStyle:UITableViewCellSeparatorStyleNone];
// Make this object the table view's dataSource
[taskTable setDataSource:self];
// Create and configure the
超级会员免费看
订阅专栏 解锁全文
4万+

被折叠的 条评论
为什么被折叠?



