In a view of my app I subclass tableViewController and has an activity indicator shown up when the table content is loading. I put it in the center of the screen but it scroll with the tableView (I guess the reason is I add it as a subview of the table view). Is there a way that I can keep the activity indicator in the center of the screen even the table is scrolling?
Share
You could either subclass a
UIViewControllerinstead, and set a table property, adding aUITableViewas a subclass to theUIView, making it behave exactly like aUITableViewController.Or, more simply, you could just add the
UIActivityIndicatoras a subview to the main window.