Custom UITableViewCell register class in Swift

后端 未结 5 614
慢半拍i
慢半拍i 2020-12-16 13:37

In my application, I fill the table on the basis of the array. The table uses custom UITableViewCell. Everything works fine, table is filled. Then I add Search Display Contr

5条回答
  •  失恋的感觉
    2020-12-16 14:23

    Adding self before tableView fixes the issues:

    var cell = self.tableView.dequeueReusableCellWithIdentifier(kCellIdentifier, forIndexPath: indexPath) as MyCell!
    

提交回复
热议问题