Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
UIView可见层次树的最终根是什么?那是UIWindow可以检索的对象之一[[UIApplication sharedApplication] windows]吗?modal 是这样UIView吗?
UIView
UIWindow
[[UIApplication sharedApplication] windows]
是的。每个 App 都包含 MainWindow.xib 文件。那是所有的父母。如果使用较新版本的 Xcode,将在 AppDelegate 的 didFinishWithLaunching 方法的开头声明一个 UIWindow。
此外,模态 UIViewController 将被添加到再次添加到 UIWindow 上的父 UIViewController