I want to replace my UIBarButtonItem (used for refresh) with a UIActivityIndicatorView and, when the refresh is finished, I want to turn back to the refresh button and remove the UIActivityIndicatorView.
I want to replace my UIBarButtonItem (used for refresh) with a UIActivityIndicatorView and, when
Share
Just create two different
UIBarButtonItemsOne for the activity indicator and another for a normal UIBarButtonItem.
When you want to switch them, just reassign the
rightBarButtonItemto whichever.