Interface Essentials
Most iOS apps are built using components from UIKit, a programming framework that defines common interface elements. This framework lets apps achieve a consistent appearance across the system, while at the same time offering a high level of customization. UIKit elements are flexible and familiar. They’re adaptable, enabling you to design a single app that looks great on any iOS device, and they automatically update when the system introduces appearance changes. The interface elements provided by UIKit fit into three main categories:
大多數(shù)iOS app 用UIKit框架的組件來搭建,UIKit-一個(gè)定義了通用界面元素的編程框架。這個(gè)框架讓app擁有一致的外觀的,同時(shí)提供了高度的可定制化。UIKit 元素靈活而易于理解。它們適配方便,讓你設(shè)計(jì)一個(gè)應(yīng)用卻能在所有iOS設(shè)備都看上去不錯(cuò),它們自動(dòng)升級(jí)隨著系統(tǒng)自帶樣式改變。UIKit提供的界面元素分為3個(gè)主要類別:
Bars.Tell people where they are in your app, provide navigation, and may contain buttons or other elements for initiating actions and communicating information.
柵欄。告訴人們?cè)赼pp何處,提供導(dǎo)航,包含按鈕或其他元素來開始行動(dòng)和交流信息。
Views.Contain the primary content people see in your app, such as text, graphics, animations, and interactive elements. Views can enable behaviors such as scrolling, insertion, deletion, and arrangement.
視圖。包含主要用戶在app中看到的主要內(nèi)容,例如文本,圖表,動(dòng)畫,和交互元素。視圖支持以下行為:滾動(dòng),插入,刪除和整理。
Controls.Initiate actions and convey information. Buttons, switches, text fields, and progress indicators are examples of controls.
控制。初始化操作和傳遞信息??刂破鞯睦佑邪粹o,轉(zhuǎn)換器,文本框和進(jìn)度指示器。
In addition to defining the interface of iOS, UIKit defines functionality your app can adopt. Through this framework, for example, your app can respond to gestures on the touchscreen and enable features such as drawing, accessibility, and printing.
除了定義iOS的界面,UIKit還定義你的app能運(yùn)用的功能。通過這個(gè)框架,例如,你的app可以對(duì)觸摸屏手勢(shì)應(yīng)答,支持特性有諸如繪畫,可訪問性,打印。
iOS tightly integrates with other programming frameworks and technologies too, such as Apple Pay, HealthKit, and ResearchKit, enabling you to design amazingly powerful apps.
iOS高度集成其他框架和技術(shù),例如Apple Pay, HealthKit, and ResearchKit,是你能設(shè)計(jì)出無比卓越的app。
https://developer.apple.com/ios/human-interface-guidelines/overview/interface-essentials/