0
버튼을 누를 때 Apple Maps를 여는 코드가 있지만 어떻게 든 이전 화면으로 돌아갈 수 있도록 화면 상단에 탐색 컨트롤러를 구현하고 싶습니다 페이지. 이를 어떻게 든 할 수 있습니까, 아니면 Apple 고유의 응용 프로그램을 편집 할 수없는 방식으로 사용할 수 있습니까?내비게이션 바 및 barbuttonitem이있는 Apple지도 열기
감사합니다. 모든 도움을 주시면 감사하겠습니다. 다음은지도를 여는 데 사용하는 코드입니다.
- (IBAction)mapPressed:(id)sender
{
CLLocationCoordinate2D location = CLLocationCoordinate2DMake(25.613336,-80.398437);
//Apple Maps, using the MKMapItem class
MKPlacemark *placemark = [[MKPlacemark alloc] initWithCoordinate:location addressDictionary:nil];
MKMapItem *item = [[MKMapItem alloc] initWithPlacemark:placemark];
item.name = @"Zoo Miami";
[item openInMapsWithLaunchOptions:nil];
//I need an navigation bar to open with the Apple map so that I could go back to my app without exiting the map and re-entering my app.
}
내가 한 지점에서 다른 지점으로 운전 방향을 지정할 수 없다는 것을 알기 전까지 나는 이것을 시도했다. 피드백에 감사드립니다. – parisianastro97