iosiphoneuiviewanimationtransitionpage-curl

Is there a full pagecurl? Updated


Ok, so I really like the pagecurl effect, only one problem, when sending feedback email from within the app, the partialPageCurl covers the cancel button and most of the send button for the mail. The buttons still work, but the users won't see them. Is there a way to get the partialPageCurl to a fullPageCurl where it's almost completely off screen? Thanks in advance! Here is currently how I'm pushing the view.

- (IBAction)HelpClicked{

MoreHelp *More = [[MoreHelp alloc] initWithNibName:nil bundle:nil];

More.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController:More animated:YES];

[More release]; 
}

Solution

  • No there is no full page curl variant for UIModalTransitionStyle.

    If this is what you need then you must implement it manually yourself. It is more complex that doing a simple modal view controller but doable.

    This code snipped only works in default portrait layout, and will need tweaking for your needs. But I hope it gives you an idea of what you need to do:

    UIView* view = viewController.view;
    view.frame = self.view.window.bounds;
    [UIView transitionWithView:self.view.window
                      duration:0.2 
                       options:UIViewAnimationOptionTransitionCurlUp 
                    animations:^(void) {
                        [self.view.window addSubview:view];
                    } 
                    completion:^(BOOL finished) {
                        [viewController.view removeFromSuperview];
                        [viewController presentModalViewController:viewController
                                                          animated:NO];
                    }];