Question

I am using the SVProgressHUD progress indicator, and it works very well most of the time.

I am having some issues with it not appearing as expected in certain situations, however.

For example, I would like to show the indicator when I click a button on a view. This button launches a synch call to a web service. At the end of the svc call, the SVProgressHUD indicator window is removed.

What is happening is - the progress window pops up and disappears immediately after the svc call finishes.. even though my code to display the SVProgressHUD window is the first line in my 'buttonPressed' action.

I think there are some UIView concepts I am missing here... any insight?

Thanks

Was it helpful?

Solution

You shouldn't attempt to show user interface elements on a background thread. If you're in a background thread, access the main thread to update your interface.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top