Add view over tableview (UITableViewController)

前端 未结 8 2076
[愿得一人]
[愿得一人] 2020-12-09 10:39

Situation: I\'ve got a UITableViewController loading some data asynchronously from a service. During this time I would like to place a full screen (except n

8条回答
  •  孤城傲影
    2020-12-09 11:10

    You can try to add the view to the window instead of nesting it in the table view like this:

    UIWindow* mainWindow = [[UIApplication sharedApplication] keyWindow];
    [mainWindow addSubview: overlayview];
    

提交回复
热议问题