Animate View Controller from Callout

94 views Asked by At

I have a set of annotations that each have a callout. I want the callout to animate in a new view controller page but keep the current on in the background. My first thought was to just create a normal push and have a clear background but I did not think that all the way through. Here is my current code which pushes to a new page.

    - (void)mapView:(MKMapView *)mapView annotationView:(MKAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control
{
    InfoViewController  *objDetail = [[InfoViewController alloc] initWithNibName:@"InfoViewController" bundle:nil];


    objDetail.pawpost = (PAWPost *)view.annotation;
    [self.navigationController pushViewController:objDetail animated:YES];

}

Any suggestions how to animate in one view controller over the current one?

0

There are 0 answers