0

我正在使用基于导航的应用程序。我正在使用推送弹出来切换视图。但是当我想使用当前模型视图控制器来向上滑动视图时..然后推弹不能正常工作?我如何滑动我的视图/

4

3 回答 3

2

您必须使用 navigationController 实例而不是里面的 View。

[self.navigationController presentModalViewController:proView animated:YES];

于 2011-04-06T09:51:53.323 回答
0

这可能会有所帮助...

推送 UIViewController 的自定义动画

只需实现一个自定义动画,例如:

_view.frame = CGRectMake(0, 480, _view.frame.size.width, _view.frame.size.height);
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.5];
[UIView setAnimationDelegate:self];

_view.frame = CGRectMake(0, 0, _view.frame.size.width, _view.frame.size.height);

[UIView commitAnimations];
于 2011-04-06T09:21:54.030 回答
-1

如果我没记错的话,当前的模态查看器不能与导航控制器结合使用。目前的模态查看器是为了完全按照您的需要而构建的,而 push/pop 方法可以轻松创建导航控制器......

于 2011-04-06T09:18:38.317 回答