Wednesday, 14 December 2011

Pushing Animations In NavigationBased-iPhone

//1)
DemoAppViewController *anotherViewController = [[DemoAppViewController alloc]  initWithNibName:@"DemoAppViewController" bundle:nil];

               anotherViewController.phrase=descri;
       
        [UIView beginAnimations:nil context:NULL];
       
        [UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:self.navigationController.view cache:YES];



//[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:self.navigationController.view cache:NO];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlDown
                           forView:self.navigationController.view cache:NO];
   


[UIView setAnimationDuration:.8];




        [self.navigationController pushViewController:anotherViewController animated:NO];
                [anotherViewController release];
        [UIView commitAnimations];



No comments:

Post a Comment