UITableView cellforrowatindexpath not called

后端 未结 12 766
梦谈多话
梦谈多话 2021-01-05 07:24

I am pretty new to Iphone development . so please bear me if I ask some very simple questions.

In my application I have multiple views(i.e. .xib files). On clicking

12条回答
  •  一整个雨季
    2021-01-05 07:57

    For anyone that comes across this problem, I solved this by adding my TableView's controller as a child to the parent controller using:

    UITableViewController * table = [[UITableViewController alloc] init];
    ...
    [self.view addSubview:table.tableView];
    [self addChildViewController:table];
    

提交回复
热议问题