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框架的組件來(lái)搭建帖世,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)航,包含按鈕或其他元素來(lái)開始行動(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.
控制倔幼。初始化操作和傳遞信息∷控制器的例子有按鈕损同,轉(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)用的功能茂卦。通過(guò)這個(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ì)出無(wú)比卓越的app黍衙。
https://developer.apple.com/ios/human-interface-guidelines/overview/interface-essentials/