gpt4 book ai didi

ios - UIWindow 的目的是什么?

转载 作者:可可西里 更新时间:2023-11-01 03:29:08 26 4
gpt4 key购买 nike

我总是看到对应用程序“窗口”的引用,而且我看到 AppDelegates 通常有一个名为“窗口”的 UIWindow 属性。所以我只是想知道如何感知这个 UIWindow 对象。我看到它是 UIView 的子类,所以我猜从技术上讲它是一个 View ,对吗?那么可以说它就像整个应用程序的 Superview 吗?另外,什么时候以及为什么我会提到它?它增加了什么值(value)?

我知道那里有很多问题,但只是一些关于 UIWindow 的整体上下文会很好。

最佳答案

您可能想查看 About Windows and Views View Programming Guide for iOS 部分。

In iOS, you use windows and views to present your application’s content on the screen. Windows do not have any visible content themselves but provide a basic container for your application’s views. Views define a portion of a window that you want to fill with some content. For example, you might have views that display images, text, shapes, or some combination thereof. You can also use views to organize and manage other views.

另请注意,iOS 应用程序通常只有一个窗口。异常(exception)情况是,如果应用程序在外部屏幕上显示内容。

关于ios - UIWindow 的目的是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18282311/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com