There are certain situations in which we want to custom the animation of push navigation controller. In this post I am giving a block of code to achieve this.
destnation.view.frame = CGRectMake(self.view.frame.origin.x,
                                                          -self.view.frame.size.height,
                                                            self.view.frame.size.width,
                                                            self.view.frame.size.height);

[UIView animateWithDuration:0.7 animations:^{
[self.navigationController pushViewController:destnation animated:NO];
destnation.view.center = self.view.superview.center;
}];

0 comments:

Post a Comment

Note: only a member of this blog may post a comment.