0

이 있어야한다 로스 앤젤레스에서 저를 넣어 : MapKit CLLocationCoordinate2D는 잘못된 위치

double latitude = 34.05; 
double longitude = 118.25; 

CLLocationCoordinate2D location = CLLocationCoordinate2DMake(latitude, longitude); 

NSString *desc = @"hey there"; 
NSString *address = @"some address"; 

CLLocationCoordinate2D coordinate; 
coordinate.latitude = location.latitude; 
coordinate.longitude = location.longitude; 
MyLocation *annotation = [[MyLocation alloc] initWithName:desc address:address coordinate:coordinate]; //implements <MKAnnotation> 

NSArray *annotations = @[annotation]; 
[self.mapView showAnnotations:annotations animated:YES]; 

그러나이 주석이 중국 동부에 끝납니다. 전환에서 나는 무엇을 놓치고 있습니까?

답변

2

저는 Los Angles에 대해 -118.25 도가 필요하다고 생각합니다.