Open Maps app from Code - Where/How to find the “Current Location”?

后端 未结 4 1445
故里飘歌
故里飘歌 2020-12-15 01:18

I am opening Maps app to show directions from user\'s Current Location to a destination coordinate, from my code. I am using the following code to open the Maps app. I am ca

4条回答
  •  [愿得一人]
    2020-12-15 02:14

    As pazustep pointed out, "Current Location" works only for English. In Italian, for example, the correct string is "Posizione attuale".

    Sniffing in the iPhone firmware I detected all the "Current Location" translations and I wrote a class that provides the correct string needed for any (currently) supported language.

    There's a post about this (source code included) on my blog: http://www.martip.net/blog/localized-current-location-string-for-iphone-apps.

提交回复
热议问题