还有其他人在 Swift 中使用 tableView.registerClass
方法时遇到问题吗?
它不再出现在我的代码完成中(如果手动输入我也不能使用它)但它仍然在标题中......
最佳答案
它非常适合我。
self.tableView.register(UITableViewCell.self, forCellReuseIdentifier: "cell")
和我上面的一样。
关于ios - UITableView - 使用 Swift 注册类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25347406/