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:

大多數iOS app 使用 UIKit 的組件來創建。UIKit是一個編程框架,可以定義普通界面元素。這個框架讓app在整個系統中外觀表現一致,與此同時提供高階的定制。UIKit 元素靈活且常見。他們適應性強,讓你設計一個APP在任何iOS設備看上去都很好, 并且當系統引入外觀改變時他們會自動升級。UIKit提供的界面元素適用3種主要類目:

Bars.Tell people where they are in your app, provide navigation, and may contain buttons or other elements for initiating actions and communicating information.

欄目(Bars),提供導航,指示用戶他們在哪里,也可以包含按鈕或者其它觸發動作的元素和交流信息。

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.

視圖(Views),包含用戶app里看到的基本內容,如文本,圖形,動畫,和交互元素。視圖能啟用行為,如滾動,插入,刪除,排序。

Controls.Initiate actions and convey information. Buttons, switches, text fields, and progress indicators are examples of controls.

控制器(Controls),監聽動作或傳遞信息。按鈕,切換,文本輸入,和進度指示都是控制器的例子。

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可以采用的功能。舉個例子,通過這個框架app能夠在觸摸屏上識別手勢和啟用特性 ,如繪圖,存取訪問和打印。

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也緊密的集成了其它程序框架和技術,如蘋果支付(Apple Pay), 健康工具(HealthKit),和調查工具(ResearchKit)。

最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容