How to add a UIView above the current UITableViewController

后端 未结 20 844
旧时难觅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:45

    You may simply put the following code in viewDidAppear:

    [self.tableView.superview addSubview:];
    

提交回复
热议问题