gpt4 book ai didi

ios - 带有静态单元格的 TableView "...dataSource must return a cell from cellForRowAtIndexPath"错误

转载 作者:行者123 更新时间:2023-11-29 12:57:50 25 4
gpt4 key购买 nike

<分区>

在我的应用程序中,我有 ViewController,它放置了带有静态单元格的 TableView。 Storyboard看起来像这样:

enter image description here

在我写的.m文件中:

 - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {

[self.myTableView cellForRowAtIndexPath:indexPath];
}

但是我收到一个错误:dataSource must return a cell from cellForRowAtIndexPath我做错了什么?

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com