I am currently using NSTimer to load a “Please Wait” alert view in my application while it contacts a server. I want to get rid of this NSTimer and change it so that it runs the “Please Wait” alert view in a loop until it gets a response from the server.
How would I do this?
A loop would be bad (blocking the main thread), but if you use
NSURLConnectionobject you get aconnectionDidFinishLoading:message in the delegate.connectionDidFinishLoading:of your delegate.Though I agree with @Radu when it’s about user experience.