私はこのコードを使用して、私のアプリからmaps.appを実行しています。iPhoneの現在の場所Maps.app
NSString* urlStr = [NSString stringWithFormat: @"http://maps.google.com/maps?saddr=%f,%f&daddr=%f,%f", s_lat, s_long, d_lat, d_long];
[のUIApplication sharedApplication]のOpenURL:[NSURL URLWithString:urlStr]。
問題は、現在の場所を取得できなかったことです。
poi1.url = [NSString stringWithFormat:@"http://maps.google.com/maps?saddr=Current Location&daddr=%f,%f",lat,lon];
あなたのアプリ内でMapViewをプレゼンテーションしてみませんか? – Julian
私はサードパーティ製のSDDを使用しているので、私は唯一のURLを許可します。 – BlackM