本文主要是介绍IT English Collection(14) of Storyboard,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
1 前言
今天我们来学习一篇关于故事板(Storyboard)的文章。
转载请注明出处:http://blog.csdn.net/developer_zhang
2 详述
2.1 原文
A storyboard is a visualrepresentation of the user interface of an iOS application, showing screens of content and the connections between those screens. A storyboard iscomposed of a sequence of scenes, each of which represents a view controller and its views;scenes are connected bysegue objects, which represent a transition between two view controllers.
Xcode provides a visual editor for storyboards, where you can lay out and design the user interface of your application by adding views such as buttons, table views, and text views onto scenes.In addition, a storyboard enables you to connect a view to its controller object, and to manage the transfer of data between view controllers. Using storyboards is therecommended way to design the user interface of your application because they enable you tovisualize the appearance and flow of your user interface on onecanvas.
A Scene Corresponds to a Single View Controller and Its Views
On iPhone, each scene corresponds to a full screen’s worth of content; on iPad, multiple scenes can appear on screen at once—for example, using popover view controllers. Each scene has adock, which displays icons representing the top-level objects of the scene. The dock is usedprimarily to make action and outlet connections between the view controller and its views.
A Segue Manages the Transition Between Two Scenes
You can set the type of transition (for example, modal or push) on a segue. Additionally, you can subclass a segue object to implement a custom transition.
You can pass data between scenes with the method prepareForSegue:sender:, which is invoked on the view controller when a segue istriggered. This method allows you tocustomize the setup of the next view controller before it appears on the screen. Transitions usually occur as the result of some event, such as a button being tapped, but you canprogrammaticallyforce a transition by calling performSegueWithIdentifier:sender: on the view controller.
2.2 生词
representation[,reprɪzen'teɪʃ(ə)n] n. 代表;表现
compose[kəm'pəʊz]vt. 构成;写作
scene[siːn]n. 场面;情景
segue['segweɪ]n. 继续(用作指示语)
transition[træn'zɪʃ(ə)n; trɑːn-; -'sɪʃ-]n. 过渡;转变
recommend[rekə'mend]vt. 推荐,介绍
in addition 另外,此外
visualize['vizjuəlaiz] vt. 形象,形象化;想像,设想
canvas['kænvəs]n. 帆布;画布
Correspond[kɒrɪ'spɒnd]vi. 符合,一致
dock[dɒk]n. 码头;船坞
primarily['praɪm(ə)rɪlɪ; praɪ'mer-]adv. 首先;主要地,根本上
Additionally[ə'dɪʃənəlɪ]adv.此外;又,加之
trigger['trɪgə]vt. 引发,引起;触发
customize['kʌstəmaiz] 自定义
setup['setʌp]n. 设置
programmatically以编程方式
force[fɔːs]vt. 促使,推动
3 结语
以上是所有内容,希望对大家有所帮助。
这篇关于IT English Collection(14) of Storyboard的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!