我有纬度和长值,我需要能够在这个位置放置图钉。
有人可以提供一些关于如何解决这个问题的建议吗?
找到下面非常简单的解决方案,将引脚放置在由以下定义的给定位置CL位置坐标二维 http://developer.apple.com/library/mac/#documentation/CoreLocation/Reference/CoreLocationDataTypesRef/Reference/reference.html
将 Pin 放在 MKMapView 上 http://www.iphonedevsdk.com/forum/iphone-sdk-development/24446-drop-pin-mkmapview.html
Edited:
CLLocationCoordinate2D ctrpoint;
ctrpoint.latitude = 53.58448;
ctrpoint.longitude =-8.93772;
AddressAnnotation *addAnnotation = [[AddressAnnotation alloc] initWithCoordinate:ctrpoint];
[mapview addAnnotation:addAnnotation];
[addAnnotation release];
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)