iPhone开发 - 的UINavigationController可以动画视图的一部分? [英] iphone dev - Can UINavigationController animate part of the view?

查看:92
本文介绍了iPhone开发 - 的UINavigationController可以动画视图的一部分?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序使用的是导航控制器,它有一个导航栏,表视图以及每个视图的图像。这些元素从顶部布局底部没有重叠。

My app is using a navigation controller and it has a navigation bar, a table view and an image on each view. Those elements layout from top to bottom with no overlapping.

现在,因为我有完全相同的图像对每个视图(标志),是有可能的,而推意见和流行的动画只有导航栏和表视图?我想要的标志始终保持在屏幕上。

Now because I have the exactly same image for every view (a logo), is it possible to animate only the navigation bar and the table view while the views push and pop? I want the logo always stays on the screen.

先谢谢了。

推荐答案

有趣的想法。您可以尝试直接添加视图导航控制器的视图的子视图,而不是使它成为任何IT控制器的一部分管理,在这种情况下,你可能也想给查看特定标签,然后检索在各个控制器对它的引用 -viewWillAppear:动画:并调用 -bringSubviewToFront:用它导航控制器上。

Interesting idea. You might try adding the view directly as a subview of the navigation controller's view, rather than making it part of any of the controllers it manages—in that case, you probably also want to give the view a particular tag, then retrieve a reference to it in your individual controllers' -viewWillAppear:animated: and call -bringSubviewToFront: with it on the navigation controller.

这篇关于iPhone开发 - 的UINavigationController可以动画视图的一部分?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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