UITransitionView和UILayoutContainerView [英] UITransitionView and UILayoutContainerView

查看:2118
本文介绍了UITransitionView和UILayoutContainerView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


  1. 什么是 UITransitionView

  2. 什么是 UILayoutContainerView

  3. 我是否会因为添加子视图而遇到麻烦?

它们是 UITableView 的超级视图,它位于 UINavigationController 内,位于内UITabBarController

They are the superviews of a UITableView which is inside of a UINavigationController which is inside of a UITabBarController.

UITransitionView 我通过询问表视图的超级视图得到了。
UILayoutContainerView 我通过询问 UITransitionView 的超级视图得到了。

UITransitionView I got by asking for the superview of the table view. UILayoutContainerView I got by asking for the superview of UITransitionView.

推荐答案

它们都是Apple使用的内部视图,未在SDK中发布。

They are both internal views used by Apple and not published in the SDK.

很难说确切地说,Apple将会或不会做什么,添加一个视图到您从superView消息中检索的未记录的视图是没有争议的。你不应该做的事情(或者你做的时要小心)是对你要添加的视图做出假设。特别是它的类,但甚至基本的东西,甚至它甚至存在的事实。

It's difficult to say exactly what Apple will or won't do however, adding a view to an undocumented view you retrieve from a superView message is not contentious. What you should not do (or be careful if you do do) is make assumptions about the view you are adding to. Specifically its class but even basic things like the fact that it even exists.

你想做什么?可能有一种更简单的方法 - 比如将视图直接添加到应用程序的UIWindow。

What are you trying to do? There may be a simpler way - like adding your view directly to the app's UIWindow.

这篇关于UITransitionView和UILayoutContainerView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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