我需要的用戶,如果他想打開Safari瀏覽器,或在地圖應用的地圖可供選擇,但問題是,閹我這樣做:使用Safari打開地圖或地圖
NSString *urlString = [NSString stringWithFormat:@"http://maps.google.com/maps?saddr=%f,%f&daddr=%f,%f&dirflg=d", location.coordinate.latitude, location.coordinate.longitude, destinationLatitude, destinationLongitude];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:urlString]];
或相同搭配:
[NSString stringWithFormat:@"maps://maps.google.com/maps?
他們都打開地圖(我猜是因爲Safari瀏覽器重定向到地圖)
有沒有辦法迫使Safari瀏覽器打開它?
[Select the app that that load the map](http://stackoverflow.com/questions/9790038/select-the-app-that-will-load-the-map) – Caleb 2012-03-26 02:41:45