我不清楚,为什么声明不起作用。没有发生错误,但同时工作表中没有结果。
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell
{
let cell = tableView.dequeueReusableCell(withIdentifier: "Cell", for: indexPath) as!PersonTableViewCell
let identity = identities[indexPath.row]
cell.postImageView.image = UIImage(named: <picture name>)
cell.postTitleLabel.text = identity.<Your attribute of entity>
cell.authorLabel.text = identity.<Your attribute of entity>
cell.authorImageView.image = UIImage(named: <picture name>)
return cell
}
答案 0 :(得分:0)
这可能是因为您正在第1列中搜索lastrow。为第6列执行此操作:
lastrow = ws.Cells(ws.Rows.Count, 6).End(xlUp).Row
答案 1 :(得分:0)
你忘了定义变量i。
Dim i As Integer
为了防止将来出现此错误,请将以下代码行放在宏顶部
Option Explicit