I am retrieving data from a web service with...
NSString *myDataString = [[NSString alloc] initWithContentsOfURL:url encoding:NSUTF8StringEncoding error:&outError];
How can I handle a situation where the web service is not available? As it is now the app simply hangs up.
Is there a way to test if a site is available? olso, initWithContentsOfURL does not have any time out functionality.
I looked at using URLConnection as an alternative way to request and receive the data string. I could not, however, figure out how.
Thanks for any help.
John