Creating a UITableViewController programmatically

前端 未结 4 754
逝去的感伤
逝去的感伤 2020-12-30 17:44

This is what I tried. Nothing appears on the screen and none of the UITableView methods that you are supposed to implement are getting called.

-(void)loadVie         


        
4条回答
  •  借酒劲吻你
    2020-12-30 18:43

    UIView *newView = [[UIView alloc] initWithFrame:cgRct];
    TVC.view = newView;
    

    I'll give you a hint. Here you are setting the view of the UITableViewController to an EMPTY VIEW...

提交回复
热议问题