アプリ内からマップを起動しようとしていますが、次のものを使用しています。
- (void) showMap:(id) button {
UIApplication *application = [UIApplication sharedApplication];
NSString *address = [((PhoneButton *) button).cell.client fullAddress];
NSString *addressUrl = [NSString stringWithFormat: @"http://maps.apple.com/?q=%@", address];
NSLog(@"Maps String: %@", addressUrl);
NSURL *map_url = [NSURL URLWithString:addressUrl];
[application openURL:map_url];
};
まあ、それは機能していません。問題を見つけようとしましたが、正しくやっているようです。それで、私は何が欠けていますか?
PS: 私の住所の形式は、「800, Madison Ave, New York, NY」のようなものです。