iOS Swift - UITableViewCell Custom Subclass not displaying content

后端 未结 2 1662
被撕碎了的回忆
被撕碎了的回忆 2021-01-18 04:38

I have a UITableView that I\'ve created in a UIStoryboard that has two Dynamic Prototype UITableViewCells:

\"Scr

2条回答
  •  没有蜡笔的小新
    2021-01-18 05:14

    I had many hours in finding out, why my sample with the same issue as stated here wasn't working. I'm using story boards and swift 2 (xcode 7.2).

    Once I removed

    self.tableView.registerClass(AddListObjectTableViewCell.classForCoder(), forCellReuseIdentifier: "AddCell")"
    

    in viewDidLoad() it worked for me. I just used dequeueReusableCellWithIdentifier() as stated in this sample, filled the cell, that was it...

    Kind regards, Michel

提交回复
热议问题