I am attempting to mimic the partial page curl animation that can be found in the Map app that comes on the iPhone. I am able to get it to partially curl, but the toolbar curls with the curling page, which I don't want. I merely want the toolbar at the bottom of the screen to stay where it is while the map view itself curls up.
I have a map view display in a navigation controller view. To me, it makes most sense if I load up this view from the root view controller, and I am able to successfully, however, the animation does not work as anticipated. Instead of having the page curl animation occur, the sliding of the view from the right occurs and the animation I have set takes place within buttons inside of the view. It is really very strange... I have even tried non-modal transition styles and get the same exact effect. Here is the relevant code:
-(IBAction)displayInfoButtonTapped {
NSLog(@"ParkingRootViewController displayInfoButtonTapped");
MapInfoView *mapInfoView = [[MapInfoView alloc] initWithNibName:@"MapInfoView" bundle:nil];
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:mapInfoView.view cache:YES];
[UIView commitAnimations];
[self.navigationController pushViewController:mapInfoView animated:YES];
[mapInfoView release];
[mapView displayInfoButtonTapped];
}
Anyone have any idea of what I am doing wrong? Or does anyone have a better method of how to go about doing what I am trying to do? Thanks!