で方向を歩いて生成し、私は正常に次のコードで私のアプリからの地図アプリで方向を生成:は、今の時点で地図アプリのiOS
NSString *formattedGroceryAddress = [[NSString stringWithFormat:@"%@",((EnhancedUIActionSheet *)actionSheet).grocery.address] stringByReplacingOccurrencesOfString:@" " withString:@"+"];
NSString *routeString = [NSString stringWithFormat:@"http://maps.google.com/maps?saddr=%f,%f&daddr=%@",localDataHelper.userLocation.coordinate.latitude,localDataHelper.userLocation.coordinate.longitude,formattedGroceryAddress];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:routeString]];
それは適切なが運転方向とマップのアプリを開きます。つまり、デフォルトでの方向に歩いての方向で地図を開きたいとします。たぶん私はそれを行うために別のパラメータを渡すことができます。
どのように知っていますか?
ありがとうございます!
ちょっと仲間...]リンクが私のために動作しますが、今、私は得ることができない問題があります私はどこから私の地図のアプリと呼ばれる私のアプリケーションに戻った。 – nikesh
リンゴのドキュメントURL:https://developer.apple.com/library/content/featuredarticles/iPhoneURLScheme_Reference/MapLinks/MapLinks.html – benLIVE