How to add a UIView above the current UITableViewController

后端 未结 20 858
旧时难觅i
旧时难觅i 2020-11-27 11:57

I have difficulty adding a subview (UIView) from within the viewDidLoad method of a UITableViewController

This works:

[self.view addSubview:self.prog         


        
20条回答
  •  不知归路
    2020-11-27 12:33

    try something like this:

    [self.tableView addSubview:overlayView];
    overlayView.layer.zPosition = self.tableView.backgroundView.layer.zPosition + 1;
    

提交回复
热议问题