IPhone UIActivityIndicatorView While Loading UIViewController?

You should download any data with an asynchronous request ASIHTTPRequest is a nice wrapper for this.

You should download any data with an asynchronous request, ASIHTTPRequest is a nice wrapper for this. Then for the UIActivityIndicatorView these are popular options: Show it on the tab, BEFORE actually loading anything else in the view. And when the data is ready just hide it and show the complete info.

Show your incomplete view, and add an overlay with the UIActivityIndicatorView.

The way I do it : Create a LoadingViewController Class with a UILabel, a UIActivityIndicator and black background . In the ViewDidLoad method, I set : self. View setAlpha:0.0; self.

ActivityIndicator startAnimating; I implement two methods : -(void)appear{ UIView beginAnimations:nil context:NULL; UIView setAnimationDuration:0.5; self. View setAlpha:0.65; UIView commitAnimations; } -(void)disappear{ UIView beginAnimations:nil context:NULL; UIView setAnimationDuration:0.5; self. View setAlpha:0.0; UIView commitAnimations; } In the label you can set a custom text.

Import this class in the class you are working on and just call : loadingViewController appear; and loadingViewController disappear; I don't have a Mac with me right now and can't verify if I just wrote any mistakes but I hope you get the idea :) I always prefer to make a custom class for this in case I'll need it at many places in my app.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions