One init method of NSXMLParser is initWithData:(NSData *data). When I init the NSData like this,
NSURL *url = [NSURL URLWithString:@"http://221.34.21.9"];
NSData *date = [[NSData alloc] initWithContentsOfURL:url];
if the IP address cannot be reached, my app will wait for that address's response forever.
How can I solve this problem?
Thanks!