objective-c - 使用ios的系统地图api路线规划画线,在有的手机上不能显示线路?
阿神
阿神 2017-04-17 17:18:52
0
1
396
阿神
阿神

闭关修行中......

reply all (1)
黄舟

[geocoder geocodeAddressString:@"Butterfly Lovers Cultural Park" completionHandler:^(NSArrayplacemarks, NSErrorerror) {

CLPlacemark *placemark2 = [placemarks firstObject]; [self drawPlacemark1:placemark1 placemark2:placemark2];

}];

Should theplacemark2andplacemark1pointers be exchanged during the traversal process?placemark2placemark1指针。

抱歉上面是瞎说的。

我测了你的代码,在我的设备上可以画出线路,从浙江省宁波市鄞州区天宫庄园浙江省宁波市鄞州区梁祝文化公园

Sorry the above is nonsense. ## ##I tested your code and I can draw a line on my device, from Tiangong Manor, Yinzhou District, Ningbo City, Zhejiang Provinceto Liangzhu Cultural Park, Yinzhou District, Ningbo City, Zhejiang Province, it is recommended that you add a log or breakpoint in the drawPlacemark1 method to check whether the CLPlacemark returns correctly. Poor network conditions will cause this situation, and you should handle it accordingly, that is, you should check whether NSError has a value and handle it accordingly. . ##
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!