所以刚开始将我的IOS代码转换到IOS7,遇到了一些问题.
我有一个UINavigationController
,它有子视图控制器,我用pushViewController
来显示下一个视图.要使用一组图像创建视差动画,如果自定义UINavigationController
以设置UIImageViews
组的动画,则"我的子元素"视图控制器都有self.backgroundColor = [UIColor clearColor]
,透明度.
自iOS7以来,通过部分移动当前的视图控制器并在顶部按下新的视图控制器,UINavController
子vc的动画方式得到了更新,我的视差动画看起来糟透了.我看到前一个VC移动了一点,然后消失了.有什么方法可以恢复以前的UINavigationController
pushViewController动画吗?我在代码里找不到这个.
WelcomeLoginViewController* welcomeLoginViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"WelcomeLogin"];
[self.navigationController pushViewController:welcomeLoginViewController animated:YES];
甚至try 使用:
[UIView animateWithDuration:0.75
animations:^{
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
[self.navigationController pushViewController:welcomeLoginViewController animated:NO];
[UIView setAnimationTransition:<specific_animation_form> forView:self.navigationController.view cache:NO];
}];
有人有线索吗?