Xamarin.iOS: Showing ActivityIndicator while waiting for TableView to load

https://stackoverflow.com/a/38804238/9162774

    class ViewController: UITableViewController {
        weak var activityIndicatorView: UIActivityIndicatorView!

        override func viewDidLoad() {
            super.viewDidLoad()
            let activityIndicatorView = UIActivityIndicatorView(activityIndicatorStyle: UIActivityIndicatorViewStyle.Gray)
            tableView.backgroundView = activityIndicatorView
            self.activityIndicatorView = activityIndicatorView
            activityIndicatorView.startAnimating()

        }
        ...
    }

 

..or this if you don't want to use background:

https://stackoverflow.com/a/37013305/9162774

 

...Or if you want to do on a Static TableView so you need to hide the rows/sections:

https://stackoverflow.com/questions/1061208/how-to-hide-a-section-in-uitableview

(you can't do TableView.Hidden = false because then you get a black screen)

 

...Animation during reloads

https://stackoverflow.com/questions/419472/have-a-reloaddata-for-a-uitableview-animate-when-changing