I had been using the following google weather api in my iPhone apps to get 4 day weather forecast.
NSString *address = @"http://www.google.com/ig/api?weather=Chicago";
NSString *request = [NSString stringWithFormat:@"%@",address];
NSLog(@"request: %@", request);
NSURL *URL = [NSURL URLWithString:request];
NSError *error;
NSString *XML = [NSString stringWithContentsOfURL:URL encoding:NSASCIIStringEncoding error:&error];
NSLog(@"XML: %@", XML);
NSLog(@"XML lenght: %d", [XML length]);
As of yesterday Aug 25th, 2012 I get absolutely nothing back! I don't get any results back. When did this happen? Did Has anyone else experience this same problem?
This is a really critical issue as I have multiple weather / clock apps that look for google weather api and they all are crashing as I expect some results back in my XML string!
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…