1
在我的应用程序中,我有ViewController,它将TableView与静态单元格放在一起。故事板的外观喜欢这样的:TableView与静态单元格“... dataSource必须从cellForRowAtIndexPath返回一个单元格”错误
在.m文件我写道:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
[self.myTableView cellForRowAtIndexPath:indexPath];
}
但是我收到一个错误:dataSource must return a cell from cellForRowAtIndexPath
我做错了吗?
我只想让TabeView看起来像故事板,并且不要以编程方式创建某些东西。我只需要更改labels.text属性 – daleijn
您不在* static * table视图中实现cellForRowAtIndexPath或任何数据源方法,请比较上面的“可能的重复”。 –