So at the beginning of my function I create a UIActivityIndicatorView and add to the subview. I start it and then I perform another long running function but what happens is the function runs and the UIActivityIndicatorView shows up only after it's done. It's like it's being added to a queue and not running in time before the operation starts. Is there an easy way to tell it to go and then continue?