我是 Xcode 的初学者。我想用别针显示另一个位置,而不是我当前的位置。我有纬度和经度值。现在我使用地图视图,它只显示当前位置。
-(void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
self.mapView.delegate=self;
[self.mapView setShowsUserLocation:YES];
locationmanager=[[CLLocationManager alloc]init];
[locationmanager setDelegate:self];
[locationmanager setDistanceFilter:kCLDistanceFilterNone];
[locationmanager setDesiredAccuracy:kCLLocationAccuracyBest];
}