Search code examples
iphoneobjective-ccocoa-touchuiviewcore-animation

iPhone page curl example?


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?


Solution

  • -(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...