Jimbalaya
Jimbalaya

Reputation: 150

Any alternaitve to the Google Map mapcurl?

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?

Upvotes: 2

Views: 790

Answers (2)

Chris Pemberton
Chris Pemberton

Reputation: 146

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

Upvotes: 4

Rudiger
Rudiger

Reputation: 6769

[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.

Upvotes: 0

Related Questions