Powered By Blogger

Wednesday, March 7, 2012

View Transition with Navigation

Hello,
 If you want to make transition effect having navigation for UIView in your application then please follow the below code:   


      [UIView transitionWithView:self.view.window
                          duration:1.0f
                           options:UIViewAnimationOptionTransitionCurlDown
                        animations:^{
                            [self.navigationController popViewControllerAnimated:NO];
                        }
                        completion:NULL];


        UIViewController *viewController = [[UIViewController alloc] initWithNibName:@"NibFileName" bundle:nil];
        [UIView transitionWithView:self.view.window
                          duration:1.0f
                           options:UIViewAnimationOptionTransitionCurlUp
                        animations:^{
                            [self.navigationController pushViewController:viewController animated:NO];
                        }
                        completion:NULL];
        [viewController release];


Still if any one has query then place you it over here.

Thanks and Regards,
Nilesh Prajapati
 

No comments:

Post a Comment