Google Weather API消失了嗎?我在我的iPhone應用程序中使用了以下google weather api來獲得4天的天氣預報。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]);截至2012年8月25日,我絕對沒有回來!我沒有得到任何結果。這是什么時候發生的?有沒有其他人遇到同樣的問題?這是一個非常關鍵的問題,因為我有多個天氣/時鐘應用程序尋找谷歌天氣api,他們都崩潰了,因為我期待一些結果回到我的XML字符串!
- 3 回答
- 0 關注
- 1164 瀏覽
添加回答
舉報
0/150
提交
取消