gplana
asked on
How to add the typical waiting icon to an iPhone application
Dear Expert:
I have an iPhone application which loads an image from an URL to an imageView control. I'm using this code:
NSURL * imageURL = [NSURL URLWithString:url];
NSData * imageData = [NSData dataWithContentsOfURL:imag eURL];
i.image = [UIImage imageWithData:imageData];
Which code should I add in order to show the typical "waiting" icon (the typical animated icon which appears when you have to wait) while image is loading ?
I would like not to block user, I mean, I want to show this icon to let user know there is something in progress in this screen, but user should be able to interactuate with the view, for example going back to previous view by pressing a back button this view already has.
Thank you in advance.
I have an iPhone application which loads an image from an URL to an imageView control. I'm using this code:
NSURL * imageURL = [NSURL URLWithString:url];
NSData * imageData = [NSData dataWithContentsOfURL:imag
i.image = [UIImage imageWithData:imageData];
Which code should I add in order to show the typical "waiting" icon (the typical animated icon which appears when you have to wait) while image is loading ?
I would like not to block user, I mean, I want to show this icon to let user know there is something in progress in this screen, but user should be able to interactuate with the view, for example going back to previous view by pressing a back button this view already has.
Thank you in advance.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Can you post a screenshot?
ASKER
Somethink like this:
http://blog.wpfwonderland.com/wp-content/uploads/2009/06/image-thumb2.png
http://blog.wpfwonderland.com/wp-content/uploads/2009/06/image-thumb2.png
Nice.
I do not have a code making this effect.
I do not have a code making this effect.
ASKER
It's not network indicator. After some investigation and some external help, it is activity indicator.
ASKER
I mean like the hourglass in Windows, but in iPhone it's like the animated icon shown by a web-applicatio nusing slidebox, or like the animated icon that shows you should wait on Flash applications.