Transition in Contact Application
Hello,
I want to make an transition like "Add Contact" in Contact Application of Apple.
First I use presentModalViewController, but I lost my NavigationBar
So I want to keep my Navigation Bar.
I make this :
CATransition *transition = [CATransition animation];
transition.duration = 0.3;
transition.timingFunction = UIViewAnimationCurveEaseInOut;
transition.type = kCATransitionPush;
transition.subtype = kCATransitionFromTop;
//transitioning = YES;
transition.delegate = self;
[self.navControllerResume.view.layer addAnimation:transition forKey:nil];
[self.navControllerResume pushViewController:addRecordViewController animated:NO];
The transition is correcte, but the new view is pushed up, and I would like the new view come on the "ex-view" (Like Add Contact..)
Thanks
|