美文网首页
无标题文章

无标题文章

作者: 追风少年_xu | 来源:发表于2017-06-13 17:51 被阅读0次

            英语随记 

    6.13

    1.The repository for this project is empty  -- 这个项目的存储库是空的

    2.If you already have files you can push them using command line instructions below.

    Otherwise you can start with adding a README, a LICENSE, or a .gitignore to this project. ---

    如果你已经有文件可以把他们使用下面的命令行指令。否则你可以添加一个自述,许可证,或。gitignore这个项目。

    You will need to be owner or have the master permission level for the initial push, as the master branch is automatically protected.

    你需要业主或主许可水平最初的推动,随着主分支自动保护。

    fatal    adj. 致命的;重大的;毁灭性的;命中注定的   fatal: remote origin already exists.

    Customize your experience. 定制你的经验

    Change syntax themes, default project pages, and more in preferences.改变语法主题,默认项目页面,和更多的偏好。

    6.14

    The UIView class defines a rectangular area on the screen and the interfaces for managing the content in that area.

    UIView类定义了一个矩形区域在屏幕上和管理内容的接口。

    At runtime, a view object handles the rendering of any content in its area and also handles any interactions with that content. The UIView class itself provides basic behavior for filling its rectangular area with a background color. More sophisticated content can be presented by subclassing UIView and implementing the necessary drawing and event-handling code yourself.

    在运行时,一个视图对象处理任何内容的呈现它的面积,还处理任何与内容交互。UIView类本身提供了基本行为与背景颜色填充的矩形区域。更复杂的内容可以被子类化UIView提出和实施必要的图纸和事件处理代码。

    A storyboard is a visual representation of the user interface of an iOS application, showing screens of content and the connections between those screens. A storyboard is composed of a sequence of scenes, each of which represents a view controller and its views; scenes are connected by segue objects, which represent a transition between two view controllers.

    故事板是一个iOS应用程序的用户界面的可视化表示,显示屏幕的内容和屏幕之间的连接。故事板是由一系列的场景,每一个都代表一个视图控制器及其观点;场景由segue对象相连,代表两个视图控制器之间的过渡。

    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 the recommended way to design the user interface of your application because they enable you to visualize the appearance and flow of your user interface on one canvas.

    Xcode为故事板提供了一个可视化编辑器,你可以制定和设计您的应用程序的用户界面添加视图如按钮、表视图,和文本视图到场景。此外,一个故事板使您可以连接一个视图控制器对象,并管理视图控制器之间的数据传输。推荐的方法是使用故事板设计您的应用程序的用户界面,因为他们允许您可视化用户界面的外观和流动在一个画布。

    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 a dock, which displays icons representing the top-level objects of the scene. The dock is used primarily to make action and outlet connections between the view controller and its views.

    在iPhone上,每一个场景都对应于一个全屏幕的内容;在iPad上,多个场景可以在一次的例子出现在屏幕上,使用弹出窗口视图控制器。每个场景都有一个码头,它显示图标代表的顶级对象的场景。码头主要用于做动作和视图控制器和视图之间的联系。

    As with all objects loaded from a story board, to finish initializing a view controller loaded from a storyboard you override awakeFromNib.

    与所有对象从一个故事板,完成初始化一个视图控制器从故事板覆盖awakeFromNib加载

    A Segue Manages the Transition Between Two Scenes

    一个Segue管理两个场景之间的转换

    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.

    你可以设置过渡的类型(例如,模态或推动)segue。另外,你可以子类segue对象来实现一个定制的过渡。

    You can pass data between scenes with the method prepareForSegue:sender:, which is invoked on the view controller when a segue is triggered. This method allows you to customize 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 can programmatically force a transition by calling performSegueWithIdentifier:sender: on the view controller.

    您可以在场景之间传递数据的方法prepareForSegue:发送方:,这是上调用视图控制器segue时触发。这种方法允许您定制的设置下一个视图控制器之前,出现在屏幕上。转换通常发生的一些事件,比如一个按钮被挖掘,但你可以通过编程的方式迫使过渡通过调用performSegueWithIdentifier:发送方:视图控制器。

    相关文章

      网友评论

          本文标题:无标题文章

          本文链接:https://www.haomeiwen.com/subject/qzvdqxtx.html