UITableView Custom Cells Disappearing content after Scrolling

前端 未结 10 1157
滥情空心
滥情空心 2020-12-17 00:12

I have seen this being asked here many times but none of the solutions worked for me. Here is my code snippet:

- (UITableViewCell *)tableView:(UITableView *)         


        
10条回答
  •  不知归路
    2020-12-17 00:34

    Are you adding the UITableViewcontroller as addSubView ? Then you should do like this :

    1) addChildViewController,then
    2) addSubview
    The problem is delegate and datasource of the tableview getting nil since the parent controller unable to a reference to the UITableViewController.
    

提交回复
热议问题