我正在使用基于导航的应用程序。我正在使用push pop来切换视图。但是当我想要使用当前的模型视图控制器来滑动视图..然后推弹出不能正常工作? 如何上传我的视图/当前的模型视图不能与uinavigation控制器一起使用
0
A
回答
2
你必须使用navigationController实例而不是View里面。
[self.navigationController presentModalViewController:proView animated:YES];
-1
如果我没有弄错,现在的模式查看器不能与导航控制器组合。本模式的观众建立做你想要什么,而推/ pop方法给出了一个简单的导航控制器创建的...
+0
它可以组合。 – jini 2011-04-25 15:29:39
0
这可能有助于...
Custom Animation for Pushing a 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];
0
如果需要一些帮助,请发布一些代码。恐怕你不会得到任何这样的 – visakh7 2011-04-06 09:12:51
请张贴一些代码示例如何推送和弹出视图控制器在堆栈上。如果你不接受答案,其他成员可能会失去动力回答你的问题。 – GorillaPatch 2011-04-06 09:14:15