久久久久久久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 啟動(dòng)帶有語(yǔ)音導(dǎo)航方向的地圖

        iPhone SDK 6 Launching maps with voice navigation directions(iPhone SDK 6 啟動(dòng)帶有語(yǔ)音導(dǎo)航方向的地圖)
          • <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 啟動(dòng)帶有語(yǔ)音導(dǎo)航方向的地圖的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問(wèn)題描述

                  限時(shí)送ChatGPT賬號(hào)..

                  我正在嘗試從我的 iPhone SDK 應(yīng)用程序啟動(dòng)地圖應(yīng)用程序.現(xiàn)在我可以啟動(dòng)帶有路線的地圖應(yīng)用程序,但它會(huì)轉(zhuǎn)到路線概覽,并且不使用 Siri 和語(yǔ)音導(dǎo)航來(lái)提供轉(zhuǎn)彎路線.

                  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.

                  目前我有一個(gè)啟動(dòng)此代碼的按鈕...

                  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 提供了一種啟動(dòng)地圖的新方法,使用 MKMapItem 中的 openMapsWithItems:.這是我使用的一個(gè)片段,它提供從當(dāng)前位置到所提供坐標(biāo)的步行或駕車路線:

                  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 之前的設(shè)備上運(yùn)行,您仍然需要這樣做,您需要在 URL 中包含 dirflg 以請(qǐng)求步行或駕車路線:

                  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'];
                  

                  這篇關(guān)于iPhone SDK 6 啟動(dòng)帶有語(yǔ)音導(dǎo)航方向的地圖的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

                  To stop segue and show alert(停止 segue 并顯示警報(bào))
                  Custom font is not working in my App?(自定義字體在我的應(yīng)用程序中不起作用?)
                  Should I be worried about rumors that Apple will stop using Google Maps in iOS6?(我應(yīng)該擔(dān)心蘋果將在 iOS6 中停止使用谷歌地圖的傳聞嗎?)
                  How to clear/reset all CoreData in one-to-many relationship(如何以一對(duì)多關(guān)系清除/重置所有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 委托函數(shù)調(diào)用了兩次)

                  <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>
                            主站蜘蛛池模板: 国产成人一区二区 | 亚洲av一级毛片 | 欧美精品 在线观看 | 精品免费国产 | 一区二区精品 | 特黄特色大片免费视频观看 | 久久久av| 国产在线观看一区二区三区 | 少妇精品亚洲一区二区成人 | 欧美一区二区三区大片 | 伊大人久久 | 久久久国产一区二区三区 | 亚州无限乱码 | 国产精品99 | 中文字幕成人av | 91午夜在线 | 成人深夜福利 | 国产激情免费视频 | 日韩a视频 | 欧美在线二区 | 在线一区观看 | 亚洲黄色av | 亚洲激情网站 | 99视频免费在线观看 | 五月天国产在线 | 久草网免费 | 三级视频网站 | 欧美激情欧美激情在线五月 | 北条麻妃一区二区三区在线视频 | 久久伊人一区二区 | 在线黄av| 国产亚洲精品精品国产亚洲综合 | 精品久久久久久国产 | 久久日本| 国产黄色大片在线免费观看 | 欧美日韩综合精品 | 色吧色综合 | 91天堂| 久久久久精 | 岛国av免费观看 | 亚洲一区二区三区免费在线观看 |