🔏
iOS
  • 前言
  • View编程参考
    • View/Window架构
    • Window
    • View
    • Animations
  • ViewController编程参考
    • 定义
    • 呈现视图控制器
  • UIKit
    • 关于应用开发
    • 保护用户隐私
    • 应用和环境
      • 应用声明周期
      • 应用启动
      • UIApplication
      • UIApplicationDelegate
    • Windows and Screens
      • Window
      • Scene
      • Screen
    • 视图和控制
      • UIView
Powered by GitBook
On this page

Was this helpful?

  1. UIKit
  2. Windows and Screens

Scene

同时管理着多个UI实例,和UI的资源

概述

UIKit通过UIWindowScene对象管理每个UI实例。一个scene对象包含window和view controller来显示UI实例。每个scene有一个UIWindowSceneDelegate对象,用于配合应用同UIKit的交互。多个scene同时运行,共享内存和应用进程空间。一个应用可能同时有多个scene、scene delegate对象。 通过UIApplicationDelegate对象配置scene。

PreviousWindowNextScreen

Last updated 4 years ago

Was this helpful?