IOS: ActivityIndicator over UITableView… How to?

后端 未结 5 1411
广开言路
广开言路 2020-12-31 03:19

i want display an activity indicator over a uitableview while it\'s loading data (in another thread). So in the ViewDidLoad method of the UITableViewController:



        
5条回答
  •  醉梦人生
    2020-12-31 03:38

    There's workaround for UIViewController. (You can use a UIViewController with a table view to achieve a UITableViewController.) In storyboard, add a activityIndicator in the view of UIViewController. Then in viewDidLoad, add following:

    [self.activityIndicator layer].zPosition = 1;
    

    The activityIndicator will be displayed over the table view.

提交回复
热议问题