gpt4 book ai didi

swift - 无法使具有标识符的单元格出列 - 在 Storyboard 中设置标识符和类

转载 作者:行者123 更新时间:2023-11-28 15:51:42 25 4
gpt4 key购买 nike

我有一个 tableView,其类设置为 TableViewController。在 Storyboard中,我单击单元格并将其设置为 MyCell 类。同样在 Storyboard 中,我将标识符设置为“MyCell”。然后我将其复制并粘贴到

let cell = tableView.dequeueReusableCell(withIdentifier: "MyCell", for: indexPath) as! MyCell

我错过了什么步骤?我三次检查标识符字符串是否完全相同。 tableView 和单元格设置为正确的类。

最佳答案

解决方案是删除 , for: indexPath 部分。

关于swift - 无法使具有标识符的单元格出列 - 在 Storyboard 中设置标识符和类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42217464/

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