久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <tfoot id='dybHo'></tfoot>

    1. <i id='dybHo'><tr id='dybHo'><dt id='dybHo'><q id='dybHo'><span id='dybHo'><b id='dybHo'><form id='dybHo'><ins id='dybHo'></ins><ul id='dybHo'></ul><sub id='dybHo'></sub></form><legend id='dybHo'></legend><bdo id='dybHo'><pre id='dybHo'><center id='dybHo'></center></pre></bdo></b><th id='dybHo'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='dybHo'><tfoot id='dybHo'></tfoot><dl id='dybHo'><fieldset id='dybHo'></fieldset></dl></div>
    2. <legend id='dybHo'><style id='dybHo'><dir id='dybHo'><q id='dybHo'></q></dir></style></legend>

      <small id='dybHo'></small><noframes id='dybHo'>

        <bdo id='dybHo'></bdo><ul id='dybHo'></ul>

      1. iPhone SDK 6 啟動帶有語音導航方向的地圖

        iPhone SDK 6 Launching maps with voice navigation directions(iPhone SDK 6 啟動帶有語音導航方向的地圖)
          • <small id='dYaDp'></small><noframes id='dYaDp'>

              <tbody id='dYaDp'></tbody>

                <bdo id='dYaDp'></bdo><ul id='dYaDp'></ul>
                <legend id='dYaDp'><style id='dYaDp'><dir id='dYaDp'><q id='dYaDp'></q></dir></style></legend>
                <tfoot id='dYaDp'></tfoot>
              • <i id='dYaDp'><tr id='dYaDp'><dt id='dYaDp'><q id='dYaDp'><span id='dYaDp'><b id='dYaDp'><form id='dYaDp'><ins id='dYaDp'></ins><ul id='dYaDp'></ul><sub id='dYaDp'></sub></form><legend id='dYaDp'></legend><bdo id='dYaDp'><pre id='dYaDp'><center id='dYaDp'></center></pre></bdo></b><th id='dYaDp'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='dYaDp'><tfoot id='dYaDp'></tfoot><dl id='dYaDp'><fieldset id='dYaDp'></fieldset></dl></div>

                  本文介紹了iPhone SDK 6 啟動帶有語音導航方向的地圖的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我正在嘗試從我的 iPhone SDK 應用程序啟動地圖應用程序.現在我可以啟動帶有路線的地圖應用程序,但它會轉到路線概覽,并且不使用 Siri 和語音導航來提供轉彎路線.

                  I am trying to launch the maps app from my iPhone SDK app. Right now I can launch the maps app with directions but it goes to an overview of the directions and doesn't use Siri and the voice navigation to give turn by turn directions.

                  目前我有一個啟動此代碼的按鈕...

                  currently I have a button that launches this code...

                  NSString *address = viewedObject.addressFull;
                  NSString *url = [NSString stringWithFormat: @"http://maps.apple.com/maps?saddr=%f,%f&daddr=%@", here.latitude, here.longitude, [address stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
                  [[UIApplication sharedApplication] openURL:[NSURL URLWithString:url]];
                  

                  推薦答案

                  iOS 6 提供了一種啟動地圖的新方法,使用 MKMapItem 中的 openMapsWithItems:.這是我使用的一個片段,它提供從當前位置到所提供坐標的步行或駕車路線:

                  With iOS 6 there's a new way to launch maps, using openMapsWithItems: in MKMapItem. Here's a snippet that I use that provides walking or driving directions from current location to the provided coordinates:

                  // iOS 6.0+ only
                  MKPlacemark* destPlace = [[[MKPlacemark alloc] initWithCoordinate:coordinate addressDictionary:nil] autorelease];
                  MKMapItem* destMapItem = [[[MKMapItem alloc] initWithPlacemark:destPlace] autorelease]; destMapItem.name = stationItem.title;
                  
                  NSArray* mapItems = [[[NSArray alloc] initWithObjects: destMapItem, nil] autorelease];
                  NSDictionary* options = [NSDictionary dictionaryWithObjectsAndKeys:
                                                   walking ? MKLaunchOptionsDirectionsModeWalking : MKLaunchOptionsDirectionsModeDriving,
                                                   MKLaunchOptionsDirectionsModeKey, nil];
                  [MKMapItem openMapsWithItems:mapItems launchOptions:options];
                  

                  按照您的方式,如果在 iOS 6 之前的設備上運行,您仍然需要這樣做,您需要在 URL 中包含 dirflg 以請求步行或駕車路線:

                  The way you are doing it, which you still have to do if running on pre-iOS 6 devices, you need to include the dirflg in the URL to request walking or driving directions:

                  // pre iOS 6 code
                  NSString *urlString = [NSString stringWithFormat:@"http://maps.google.com/maps?saddr=%f,%f&daddr=%f,%f&dirflg=%c",
                      currentLocation.coordinate.latitude,
                      currentLocation.coordinate.longitude,
                      destination.coordinate.latitude,
                      destination.coordinate.longitude,
                      walking ? 'w' : 'd'];
                  

                  這篇關于iPhone SDK 6 啟動帶有語音導航方向的地圖的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  To stop segue and show alert(停止 segue 并顯示警報)
                  Custom font is not working in my App?(自定義字體在我的應用程序中不起作用?)
                  Should I be worried about rumors that Apple will stop using Google Maps in iOS6?(我應該擔心蘋果將在 iOS6 中停止使用谷歌地圖的傳聞嗎?)
                  How to clear/reset all CoreData in one-to-many relationship(如何以一對多關系清除/重置所有CoreData)
                  How to display picker view in MM-dd-yy format in iOS 5.1?(如何在 iOS 5.1 中以 MM-dd-yy 格式顯示選取器視圖?)
                  PageViewController delegate functions called twice(PageViewController 委托函數調用了兩次)

                  <i id='3JJHC'><tr id='3JJHC'><dt id='3JJHC'><q id='3JJHC'><span id='3JJHC'><b id='3JJHC'><form id='3JJHC'><ins id='3JJHC'></ins><ul id='3JJHC'></ul><sub id='3JJHC'></sub></form><legend id='3JJHC'></legend><bdo id='3JJHC'><pre id='3JJHC'><center id='3JJHC'></center></pre></bdo></b><th id='3JJHC'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='3JJHC'><tfoot id='3JJHC'></tfoot><dl id='3JJHC'><fieldset id='3JJHC'></fieldset></dl></div>
                      <tbody id='3JJHC'></tbody>

                          <bdo id='3JJHC'></bdo><ul id='3JJHC'></ul>

                          <legend id='3JJHC'><style id='3JJHC'><dir id='3JJHC'><q id='3JJHC'></q></dir></style></legend>
                          1. <small id='3JJHC'></small><noframes id='3JJHC'>

                            <tfoot id='3JJHC'></tfoot>
                            主站蜘蛛池模板: 中文字幕1区2区3区 亚洲国产成人精品女人久久久 | 欧美精品一区二区三区在线 | 日韩一级 | 亚洲欧美国产精品久久 | 在线免费观看视频你懂的 | 国产91在线播放 | 在线看亚洲 | 日本不卡一区 | 先锋影音资源网站 | 亚洲人人| 91av在线电影 | 国产成人av电影 | 国内久久| 欧美成人h版在线观看 | 中文字幕亚洲一区二区va在线 | 成人午夜网站 | 97视频人人澡人人爽 | 五月综合激情网 | 福利成人 | 91九色视频在线 | 久久久久成人精品免费播放动漫 | 九色视频网站 | 久久综合久久自在自线精品自 | 中文字幕在线观看 | 久久天天 | 精品免费国产一区二区三区 | 最新超碰 | 91天堂网| 91国内产香蕉 | 午夜一区| 中国一级特黄真人毛片 | 亚洲精品国产第一综合99久久 | 国产a区| 久久网亚洲 | 精品国产欧美一区二区三区成人 | 成人免费一区二区三区视频网站 | 少妇一级淫片免费放播放 | 欧洲精品久久久久毛片完整版 | 欧美日韩一二三区 | 欧美第一页 | 成人性视频免费网站 |