标签:first animation nbsp self iss 不同的 second omr media
First ViewController
CATransition *transition = [CATransition animation]; transition.duration = 0.3; transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]; transition.type = kCATransitionPush; transition.subtype = kCATransitionFromRight; [self.view.window.layer addAnimation:transition forKey:nil]; [self presentViewController:vc animated:NO completion:nil];
Second ViewController
CATransition *transition = [CATransition animation]; transition.duration = 0.3; transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]; transition.type = kCATransitionPush; transition.subtype = kCATransitionFromLeft; [self.view.window.layer addAnimation:transition forKey:nil]; [self dismissViewControllerAnimated:NO completion:nil];
ios ViewController present不同的方向
标签:first animation nbsp self iss 不同的 second omr media
原文地址:http://www.cnblogs.com/hd1992/p/5994690.html