views:

143

answers:

1

Hi all,

Currently I am showing a modal view controller for some info .

I want to show or hide the modal view controller with full page curl animation .

Currently I am showing this modal view controller from one of the view controller of the tab bar controller .

I have the option of partialpagecurl in the modalTransitionStyle property of the modalviewcontroller to be displayed .

Current code :

InfoViewController *infoViewController = [[InfoViewController alloc] initWithNibName:@"InfoViewController" bundle:[NSBundle mainBundle]];

    //infoViewController.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;



    [self presentModalViewController:infoViewController animated:YES];

    [infoViewController release];

So How can I associate a full page curl transition or animation with a modalviewcontroller .

Thanks .

A: 
[UIView beginAnimations:nil context:nil];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:self.view cache:YES];
[UIView setAnimationDuration:0.5];
[UIView commitAnimations];
ohho
This snippet I am aware of but where to set it I am not aware of .
hib