切换iPhone视图的最佳做法? [英] Best practice for switching iPhone views?

查看:90
本文介绍了切换iPhone视图的最佳做法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在不同的iphone视图之间切换是我需要做的常规事情。我想找到关于这样做的最佳实践。我的类包含一个方法viewswitcher,它接受一个参数viewName。我试图传递控制器名称,这个方法适用于我的整个应用程序滑动或旋转视图以显示/显示新视图。但是,我收到了错误。

Switching between different iphone views is a regular thing I need to do. I want to find best practices around doing this. My class contains a method viewswitcher and it takes a parameter "viewName". I am trying to pass controller name and this single method works for my whole app to slide or rotate views to show/display new views. But, I am getting error.

我是新人。如果您在我的问题中发现任何愚蠢的错误,请更正我。

I am new. Please, if you find any silly mistake in my question please correct me.

谢谢。

推荐答案

没有关于代码或错误的细节,这很难。

Without specifics on your code or error, it's tough.

但是,从UIView编程指南:

But, From the UIView Programming Guide:

http://developer.apple.com/library/ios/#documentation/WindowsViews/Conceptual/ViewPG_iPhoneOS /CreatingViews/CreatingViews.html


... transitionFromView:toView:duration:options:completion:$ b $的方法b为新的视图换出整套视图。

... transitionFromView:toView:duration:options:completion: methods to swap out entire sets of views for new ones.

http:// developer。 apple.com/library/ios/#documentation/UIKit/Reference/UIView_Class/UIView/UIView.html#//apple_ref/occ/clm/UIView/transitionFromView:toView:duration:options:completion

这篇关于切换iPhone视图的最佳做法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆