A股上市公司传智教育(股票代码 003032)旗下技术交流社区北京昌平校区

 找回密码
 加入黑马

QQ登录

只需一步,快速开始

苹果API-UIView部分汉译,还是原始的最好,第一次翻译,不对的地方请多多指正~谢谢
UIView
The UIView class defines a rectangular area on the screen and the interfaces for managing the content in that area. 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. The UIKit framework also includes a set of standard subclasses that range from simple buttons to complex tables and can be used as-is. For example, a UILabel object draws a text string and a UIImageView object draws an image.
UIView类在屏幕界面上定义了一个长方形的区域用于管理这个区域中的内容。在运行时,一个视图对象控制在这个区域的任何内容和这些内容的交互。UIView类提供了基本的行为通过背景颜色填充它的长方形区域。更多复杂的内容通过UIView基类和实现必要的描绘或实现你自己的代码来存在。UIKit框架还包含一个标准的基类设置从简单的按钮到复杂的表格可以被用。例如,一个UILable对象描绘一个文本字符串和一个UIImageView对象描绘一个图像。
Because view objects are the main way your application interacts with the user, they have a number of responsibilities. Here are just a few:
因为视图对象是你的应用和用户交互的主要方式,它们拥有一些职责。在这里仅仅列举一些:
  • Drawing and animation

    • Views draw content in their rectangular area using technologies such as UIKit, Core Graphics, and OpenGL ES.
    • Some view properties can be animated to new values.

  • Layout and subview management

    • A view may contain zero or more subviews.
    • Each view defines its own default resizing behavior in relation to its parent view.
    • A view can define the size and position of its subviews as needed.

  • Event handling

    • A view is a responder and can handle touch events and other events defined by the UIResponder class.
    • Views can use the addGestureRecognizer: method to install gesture recognizers to handle common gestures.

        描绘和动画
                制造一些视图内容在他们的长方形区域用许多技术例如:UIKit,Core Graphics,和OpenGL ES.
                一些视图属性通过新的值可以成为动画
        布局和基视图管理
                一个视图可以含有许多子视图
                每一个视图定义它自己默认的大小关联它的父视图
                一个视图可以定义它的子视图所需要的大小和位置
        事件控制
                一个视图是一个可以通过触碰时间和其他一些事件来通过UIResponder类回应
                视图用于addGestureRecognizer:去安装手势识别来控制通用手势的方法

2 个回复

倒序浏览
支持一下
回复 使用道具 举报
蒙猜就好 嘿嘿
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 加入黑马