1

Is there a good example that shows how I can achieve a stopped page curl like in the Maps app? I want to be able to click a button that curls the page, and behind it is another view where I can click stuff etc. Are there any good examples that demonstrate this?

Sheehan Alam
  • 60,111
  • 124
  • 355
  • 556

3 Answers3

0

While the other solutions proffering UIModalTransitionStylePartialCurl do work, they don't mimic Apple's Maps app because the simplest implementation only allows full-screen curls. Here is a solution that allows a static toolbar during the curl animation.

Community
  • 1
  • 1
Tim Arnold
  • 8,359
  • 8
  • 44
  • 67
0

There is an UIModalTransitionStyle for that : UIModalTransitionStylePartialCurl

Joris Mans
  • 6,024
  • 6
  • 42
  • 69
0
-(IBAction)btnCurl_Clicked :(id)Sender
{


    ObjectMapController.modalTransitionStyle = UIModalTransitionStylePartialCurl;
    [ObjectLocation presentModalViewController:ObjectMapController animated:YES];



    [ObjectMapController dismissModalViewControllerAnimated:YES];
}   

in this example ObjectMapController is a object of mapcontroller class and Object location is also object of Location class.. mapcontroller contain only Blank class with xib and Location class only contain MapView also you need to third class for btnCurl_Clicked in this class just drag drop one button and connect it with Interface Builder and also create object of above both of class so it's work properly...

Suresh Varma
  • 9,750
  • 1
  • 60
  • 91