UIKit 框架

2017-03-20  本文已影响194人  小饼干是只松鼠

UIKit 来自苹果官网的介绍

Construct and manage your app’s user interface for iOS and tvOS. Respond to user interactions and system events, access various device features, enable accessibility, and work with animations, text, and images. In watchOS apps, enable accessibility and work with fonts and images.

意思是说UIKit 框架提供构建和管理 iOS 和 TVOS 应用程序的用户页面。响应用户互动和系统事件,访问各种设备功能,启用辅助功能,以及使用动画,文字和图片。在watchOS应用程序中,启用辅助功能并使用字体和图像。

概述

The UIKit framework (UIKit.framework) provides the crucial infrastructure needed to construct and manage iOS and tvOS apps. This framework provides the window and view architecture needed to manage an app’s user interface, the event handling infrastructure needed to respond to user input, and the app model needed to drive the main run loop and interact with the system.

UIKit框架(UIKit.framework)提供了构建和管理iOS和tvOS应用程序所需的关键基础设施。此框架提供了管理应用程序用户界面,响应用户输入所需的事件处理基础结构以及驱动主运行循环和与系统交互所需的应用程序模型所需的窗口和视图体系结构。

其他UIKit功能

除了核心应用程序行为外,UIKit还支持以下功能:

在iOS中,UIKit还支持以下功能,其中一些是针对设备的:

注意
在大多数情况下,只使用UIKit类从您的应用程序的主线程。这对于派生自UIResponder
或涉及以任何方式操纵应用程序的用户界面的类尤其如此。

选自苹果开发文档 UIKit

上一篇 下一篇

猜你喜欢

热点阅读