Nithin
Nithin

Reputation: 6475

Activity indicator not animating=iphone

In my application i am uploading some images to the servelet, which takes some time to complete upload. I have implemented an uiactivityviewer using IB and connected it to an outlet named acticityIndicator. But when i call [activityIndicator startsAnimating]; nothing is happening!!! What might be the problem. i've debugged the code, the statement is executing, but nothing happens!!!

Upvotes: 0

Views: 520

Answers (1)

philsquared
philsquared

Reputation: 22493

Are you performing your uploading on the main thread, or kicking off a background thread to do it?

If the former then you are blocking the UI thread so it doesn't have a chance to update the activity indicator.

Upvotes: 3

Related Questions