IOS-翻转效果小插曲:
使用普通的来CATransition实现转换效果,代码如下:
CATransition *animation = [CATransition animation];
[animation setDuration:0.3];
[animation setType: kCATransitionMoveIn]; //kCATransitionFade,kCATransitionPush,kCATransitionReveal
[animation setSubtype: kCATransitionFromTop]; //kCATransitionFromRight,kCATransitionFromLeft,kCATransitionFromBottom
[animation setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionDefault]];
[self.navigationController pushViewController:m_poseAddIssueViewController animated:NO]; //设为NO
[self.navigationController.view.layer addAnimation:animation forKey:nil]; //layer addAnimation