Re: Nicely centered "Loading" spinner (activity indicator) ?
The trick here was figuring out the actual height of the view in which the activity indicator is embedded, in order to center it properly. This was made problematic by the fact that the view had both a navigation title bar and a tab view bar at the bottom.
I ended up calculating a "content area frame" by subtracting out the height of the nav bar and title bar from the main content view.
|