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;
}];
01 May 2014

0 comments:

Post a Comment

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

:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.