Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/xamarin/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Objective c 以编程方式创建的表不起作用_Objective C - Fatal编程技术网

Objective c 以编程方式创建的表不起作用

Objective c 以编程方式创建的表不起作用,objective-c,Objective C,我以编程方式创建了UITableView,但没有调用它的任何方法。我一定错过了什么: - (void)viewDidLoad { [super viewDidLoad]; ... self.transactionView = [[UITableView alloc] initWithFrame:CGRectMake(0.0, CARD_VIEW_Y, 320.0, CARD_VIEW_H)]; self.transactionView.delegate

我以编程方式创建了UITableView,但没有调用它的任何方法。我一定错过了什么:

- (void)viewDidLoad
{
    [super viewDidLoad];
    ...     
    self.transactionView = [[UITableView alloc] initWithFrame:CGRectMake(0.0, CARD_VIEW_Y, 320.0, CARD_VIEW_H)];
    self.transactionView.delegate = self;
    [self.view addSubview:self.transactionView];

您需要连接tableview的
委托
数据源
UITableViewDataSource
提供了用数据填充实际表格的方法。

您需要连接tableview的
委托
数据源
UITableViewDataSource
提供了用数据填充实际表的方法