Swift 源文件tableview.dequeueReusableCell中的编辑器占位符
不断出现此错误: “源文件中的编辑器占位符” 在tableView.dequeueReusableCell行中,不知道出了什么问题。请帮助解决此错误。功能原型由Xcode提出。无法删除Swift 源文件tableview.dequeueReusableCell中的编辑器占位符,swift,xcode,Swift,Xcode,不断出现此错误: “源文件中的编辑器占位符” 在tableView.dequeueReusableCell行中,不知道出了什么问题。请帮助解决此错误。功能原型由Xcode提出。无法删除表视图中带有标识符的 func tableView(_ tableView:UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell = tableView.dequeueReusableCell(wit
表视图中带有标识符的
func tableView(_ tableView:UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "BasicCell", for: IndexPath)
cell.textLabel?.text = filters[indexPath.row]
return cell
}
看看错误在哪里。它位于for:
之后的indepath
部分
必须使用有效的indepath
引用替换该占位符,例如使用indepath
参数。indepath
(小写)。indepath
在函数调用中仍然使用占位符值(注意背景突出显示)。您需要将其替换为indepath