Ios4 如何将TTSectionedDataSource设置为TTableView,但不使用TTTableViewController

Ios4 如何将TTSectionedDataSource设置为TTableView,但不使用TTTableViewController,ios4,three20,Ios4,Three20,我有一个视图不是TTTableViewController的一部分。这可能会有几个可删除的视图 我尝试将每个tableView设置为其自己的TTSectionedDataSource,但不显示数据。我需要将数据源设置为屏幕上的任何TableView,但这并不取决于控制器基于TTTableViewController 这是我首先尝试的: self.products.dataSource = [TTSectionedDataSource dataSourceWithObjects:

我有一个视图不是TTTableViewController的一部分。这可能会有几个可删除的视图

我尝试将每个tableView设置为其自己的TTSectionedDataSource,但不显示数据。我需要将数据源设置为屏幕上的任何TableView,但这并不取决于控制器基于TTTableViewController

这是我首先尝试的:

self.products.dataSource = [TTSectionedDataSource dataSourceWithObjects:
                   @"Links and Buttons",
                   [TTTableTextItem itemWithText:@"TTTableTextItem" URL:@"tt://tableItemTest"
                                    accessoryURL:@"http://www.google.com"],
                   [TTTableLink itemWithText:@"TTTableLink" URL:@"tt://tableItemTest"],
                   [TTTableButton itemWithText:@"TTTableButton"],
                   [TTTableCaptionItem itemWithText:@"TTTableCaptionItem" caption:@"caption"
                                                URL:@"tt://tableItemTest"],
                   @"Static Text",
                   [TTTableTextItem itemWithText:@"TTTableTextItem"],
                   [TTTableCaptionItem itemWithText:@"TTTableCaptionItem which wraps to several lines"
                                            caption:@"Text"],
                   [TTTableActivityItem itemWithText:@"TTTableActivityItem"],

                   nil];

self.products是TTTableView吗?你试过[自我产品重新加载]吗?是的。还尝试了重新加载。。。