Tag: pushviewcontroller

显示pushviewcontrolleranimation看起来像presentModalViewController

是否有可能显示pushViewControlleranimation看起来像presentModalViewController但具有pushViewController后台function?

具有透明内容的ios 7视图与以前的视图重叠

最近,我更新了我的xcode项目,与iOS 7一起工作,但是我遇到了一个很大的问题。 因为我的整个应用程序只有一个背景图像(UIImageView添加到关键窗口),并且所有视图都是透明的,所以在推送UIViewController时,我遇到了一个问题,因为推送的视图控制器与先前的视图重叠(可以在这里看到: http:/ /grab.by/qp0k )。 我可以预测,这是因为在iOS 7推送过渡已经改变,因为现在它滑动了一半的屏幕。 也许有人知道如何解决这个问题? 这是我如何设置我的关键窗口 self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; UIImageView *background = [[UIImageView alloc]initWithFrame:[[UIScreen mainScreen] bounds]]; background.image = [UIImage imageNamed:@"background.png"]; UINavigationController *navi = [[UINavigationController alloc]initWithRootViewController:self.viewController]; self.window.rootViewContro‌​ller = navi; [self.window makeKeyAndVisible]; 之后当用户点击“开始锻炼”button,我总是按下我的下一个视图: workoutView *w = [[workoutView alloc]initWithNibName:@"workoutView" bundle:nil]; [self.navigationController pushViewController:w animated:YES];

还原iOS7以前的UINavigationController pushViewControlleranimation

所以。 刚开始将IOS代码转换到IOS7,遇到了一些问题。 我有一个UINavigationController ,它有子ViewControllers和我使用pushViewController来显示下一个视图。 使用一组图像创build视差animation,如果自定义UINavigationController来为一组UIImageViews设置animation,并且我的子ViewController都有一个self.backgroundColor = [UIColor clearColor] ,透明度。 从iOS7开始, UINavController通过移动当前视图控制器来更新它的子vc的animation,并且在顶部推动新的视图控制器,我的视差animation看起来很糟糕。 我看到以前的VC移动一下,然后消失。 有什么办法可以恢复以前的UINavigationController pushViewControlleranimation? 我似乎无法在代码中find它。 WelcomeLoginViewController* welcomeLoginViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"WelcomeLogin"]; [self.navigationController pushViewController:welcomeLoginViewController animated:YES]; 即使尝试使用: [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]; }]; 有没有人有任何线索?

UINavigationController“pushViewController:animated”的完成处理程序?

我正在使用UINavigationController创build一个应用程序来呈现下一个视图控制器。 用iOS5有一个新的方法来呈现UIViewControllers : presentViewController:animated:completion: 现在我问我为什么没有UINavigationController的完成处理程序? 有刚刚 pushViewController:animated: 是否有可能创build我自己的完成处理程序,如新的presentViewController:animated:completion: