私はIOS6用のアプリを開発しています。
マップアプリケーションを実行し、ユーザーをナビゲートできるように開始と宛先を渡したいです。
UIApplication *app = [UIApplication sharedApplication];
NSString *coordinates = [NSString stringWithFormat:@"http://maps.google.com/maps?daddr=%f,%f&saddr=%f,%f", ...];
[app openURL:[NSURL URLWithString: coordinates]];
このコードはシミュレーターのブラウザーでグーグルマップを開き、デバイスのアプリをマップすると思いましたが、デバイスではブラウザーのグーグルマップを実行します。
私は何か間違ったことをしていますか?