必赢亚洲手机app下载


必赢亚洲手机app和您在协同的日子

手机摄影大赛

iOS8人机交互指南

前一篇:iOS 8人机交互指南(1)

2. iOS App 剖析(iOS App Anatomy)

Almost all iOS apps use at least some of the UI components defined by
the UIKit framework. Knowing the names, roles, and capabilities of
these basic components helps you make informed decisions as you design
the UI of your app.

电脑软件,差一点所有的 iOS app 至少会利用部分由 UI基特(Kit) 框架所定义的 UI
组件。精通这么些基础零部件的称呼、角色、效能,有助于在设计 app UI
时做出更有依照的支配。

UI组件

The UI elements provided by UIKit fall into four broad categories:

Bars. Bars contain contextual information that tell users where
they are and controls that help users navigate or initiate actions.

Content views. Content views contain app-specific content and can
enable behaviors such as scrolling, insertion, deletion, and
rearrangement of items.

Controls. Controls perform actions or display information.

Temporary views. Temporary views appear briefly to give users
important information or additional choices and functionality.

UI基特(Kit) 提供的 UI 元素可以分为两个大类:

栏(Bar):栏包含上下文相关的信息,可以告诉用户他们处于何处。栏还隐含控件,可以援助用户导航或发起操作。

内容视图(Content
view):内容视图包含应用相关的内容,并且能吸引操作,例如滚动、插入、删除或者条款重排。

控件(Control):控件执行操作依然突显消息。

临时视图(Temporary
view):临时视图短暂地面世,用来报告用户首要的信息或者额外的选用和意义。

In addition to defining UI elements, UIKit defines objects that
implement functionality, such as gesture recognition, drawing,
accessibility, and printing support.

Programmatically, a UI element is a type of view because it inherits
from UIView. A view knows how to draw itself onscreen, and it knows
when a user touches within its bounds. Controls (such as buttons and
sliders), content views (such as collection views and table views),
and temporary views (such as alerts and action sheets) are all types
of views.

除去定义 UI 元素,UIKit还定义了用来促功用益的对象,例如手势识别,绘制,可访问性,打印帮助。

从程序的角度来讲,一个 UI 元素是一连串型的视图(view),因为它延续自
UIView。一个视图知道什么在屏幕上本身绘制,也能对用户在其界线内的触摸有所感知。控件(例如按钮和滑块)、内容视图(例如集合视图和表格视图)、临时视图(例如警告指示和动作表单)都是见仁见智类其余视图。

To manage a set or hierarchy of views in your app, you typically use
view controller. A view controller coordinates the display of
views, implements the functionality behind user interactions, and can
manage transitions from one screen to another. For example, Settings
uses a navigation controller to display its hierarchy of views.

Here’s an example of how views and view controllers can combine to
present the UI of an iOS app.

为了管住 app 中的一多样视图,通常需要利用视图控制器(view
controller)。视图控制器会协调视图的彰显,实现用户交互背后的意义,还可以管住屏幕间的切换。例如,设置(Settings)使用导航控制器来显示它的不等层次的视图。

下边是一个示范,介绍了视图与视图控制器是怎么样构成在一块来展现 iOS app 的
UI。

视图控制器

Although developers think in terms of views and view controllers,
users tend to experience an iOS app as a collection of screens. From
this perspective, a screen generally corresponds to a distinct visual
state or mode in an app.

虽说开发者是从视图和视图控制器的角度来考虑,但用户补助于把 iOS app
当做一组屏幕(screen)来感受。从这么些角度看,一个屏幕平常对应于 app
中一个尽人皆知有别于于其它的可见状态或格局。

NOTE

An iOS app includes a window. But—unlike a window in a computer app—an
iOS window has no visible parts and it can’t be moved to another
location on the display. Most iOS apps contain only one window; apps
that support an external display can have more than one.

注:一个 iOS app
包括一个窗口(window)。不过,不同于电脑软件中的窗口,一个 iOS
窗口没有可见的片段,它也不可能在体现时被活动到另一个岗位。大部分 iOS app
只包含一个窗口,协助额外显示的 app 才会有随地一个窗口。

In iOS Human Interface Guidelines, the word screen is used as it’s
understood by most users. As a developer, you might also read about
screens in other contexts, where the term refers to
the UIScreen object
you can use to access an external display screen.

在 iOS
人机交互指南里应用屏幕(screen)这么些词是因为它能被大部分用户所知晓。作为一个开发者,你恐怕也会在其他上下文中读到关于屏幕(screen)的始末,而这时,这么些词实际指的是
UIScreen 对象,开发者可以应用该对象来走访额外的突显屏。

英文原稿链接

后一篇:iOS 8人机交互指南(3)

相关文章

No Comments, Be The First!
近期评论
    功能
    网站地图xml地图