views:

48

answers:

2

Does anyone know how to mimic the map curl in the Google Map application without using the undocumented mapCurl and mapUncurl API?

Ideally I would like to do the same thing as the Google Map application. If this is not possible, is there any way to 'slide' the map image up to show the options?

A: 
[UIView transitionFromView:self.view toView:overlayView duration:1 options:UIViewAnimationOptionTransitionCurlUp completion:nil];

Will do the animation of the page curl up if thats what you mean. I haven't found a way to pause it half way like the google maps app does, but in theory if you implement the UIView animation delegate methods you might be able to pause it half way or something.

EDIT:

[UIView transitionFromView:overlayView toView:self.view duration:1 options:UIViewAnimationOptionTransitionCurlDown completion:nil];

is the curl down implementation of it.

Just so you are aware overlayView is UIView, not a UIViewController, not that it should matter but thats how I implemented it.

Rudiger
A: 

SampleViewController *sampleView = [[[SampleViewController alloc] init] autorelease]; [sampleView setModalTransitionStyle:UIModalTransitionStylePartialCurl]; [self presentModalViewController:sampleView animated:YES];

Chris Pemberton