2013-07-05 1 views
3

MKMapItem을 사용하여 A에서 B까지의 경로를 만들었지 만지도에서 주석의 제목을 변경할 수 없습니다. 내 코드 :Apple지도 경로에서 주석 제목을 변경하는 방법

CLLocation *locationRestaurante = [[CLLocation alloc] initWithLatitude:[[[listaRestaurante objectAtIndex:0] objectForKey:@"latitude"] floatValue] longitude:[[[listaRestaurante objectAtIndex:0] objectForKey:@"longitude"] floatValue]]; 

     MKPlacemark *place = [[MKPlacemark alloc] initWithCoordinate:locationRestaurante.coordinate addressDictionary:nil]; 

     MKMapItem *mapItem = [[MKMapItem alloc]initWithPlacemark:place]; 

     NSDictionary *options = @{MKLaunchOptionsDirectionsModeKey:MKLaunchOptionsDirectionsModeDriving}; 

     [mapItem openInMapsWithLaunchOptions:options]; 

는 잘 모든 것을 열어 ...하지만 하나의 문제가있다 :

unknown location

답변