我是 Swift 语言的新开发人员,所以我正在尝试使用静态数组制作简单的 UITableview,但效果不佳。 我收到此错误消息说 UITableview 没有任何名为 count 的成员。 我能做些什么来解决这个问题? 先感谢您
最佳答案
你必须传递你的 array
计数而不是 tableView
计数
在 numberOfRowInSection
返回 self.myArray.count
在cellForRowAtIndexPath
cell.textLabel.text = self.myArray[indexPath.row]
关于ios - UITableView 没有名为 count 的成员,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30681467/