有没有办法以编程方式显示苹果 map 中多个点之间的路线,如谷歌地图?
最佳答案
正如 MKMapItem 文档所述:
If you specify the MKLaunchOptionsDirectionsModeKey option in the launchOptions dictionary, the mapItems array must have no more than two items in it. If the array contains one item, the Maps app generates directions from the user’s current location to the location specified by the map item. If the array contains two items, the Maps app generates directions from the location of the first item to the location of the second item in the array.
所以答案是否定的。
关于apple-maps - Apple Map 中的多个航点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27858667/