博客> 我的iOS自学之路(2)
我的iOS自学之路(2)
2018-02-17 15:53 评论:3 阅读:448 jack_c9
ios

平时学习的时候,记录了一些英文定义和术语,贴上一部分:

Function: A function is a reusable, named piece of code that can be referred to from many places in a program.

Method: Functions that are defined within a specific type are called methods.

Class: In object-oriented programming, the behavior of a program is based largely on interactions between objects. An object is an instance of a class, which can be thought of as a blueprint for that object. Classes store additional information about themselves in the form of properties, and define their behavior using methods.

Initializer: An initializer is a method that prepares an instance of a class for use, which involves setting an initial value for each property and performing any other setup.

Enumeration: Enumerations define a common type for a group of related values and enable you to work with those values in a type-safe way within your code. Enumerations can have methods associated with them.

Structure: Structures support many of the same behaviors as classes, including methods and initializers. One of the most important differences between structures and classes is that structures are always copied when they are passed around in your code, but classes are passed by reference. Structures are great for defining lightweight data types that don’t need to have capabilities like inheritance and type casting.

Protocol: A protocol defines a blueprint of methods, properties, and other requirements that suit a particular task or piece of functionality. The protocol doesn’t actually provide an implementation for any of these requirements—it only describes what an implementation will look like. The protocol can then be adopted by a class, structure, or enumeration to provide an actual implementation of those requirements. Any type that satisfies the requirements of a protocol is said to conform to that protocol.

comment: 注释 [ˈkɒment]

slash: / [slæʃ]

asterisk: * [ˈæstərɪsk]

colon: 冒号: [ˈkəʊlən,-lɒn]

initial: 初始化 [ɪˈnɪʃl]

exclamation mark: ! [ˌekskləˈmeɪʃn]

question mark: ?

statement: 声明 [ˈsteɪtmənt]

nest: 嵌套

clause: 从句 [klɔːz]

curly braces: {} [ˈkɜːli] [breɪs]

constant: 常量 [ˈkɒnstənt]

comma: , [ˈkɒmə]

parentheses:() [pəˈrenθəsɪs]

inherit: 继承 [ɪnˈherɪt]

underscore: _ [ˌʌndəˈskɔː(r)]

wildcard: 通配符,比如for循环条件表达式中用来指代非具体参数的“_”

declare: 声明(动词) [dɪˈkleə(r)]

statement: 声明(名词) [ˈsteɪtmənt]

parameter: 参数(形参) [pəˈræmɪtə(r)]

argument: 实参(调用函数时要传入的参数值) [ˈɑːgjʊmənt]

call:调用函数

syntax: 句法,语法 [ˈsɪntæks]

object-oriented: 面向对象的 [ˈɔːrɪənt]

initializer: 初始化(=构造函数) [ɪ'nɪʃəlaɪzə]

distinguish: 区分,区别 [dɪ'stɪŋɡwɪʃ]

assign: 赋值

implementation: 执行(=函数、方法的执行部分) [ˌɪmplɪmen'teɪʃn]

radius: 半径 ['reɪdiəs]

primary: 主要的,最初的 ['praɪmeri]

customization: 定制化,用户化 ['kʌstəmaɪzeɪʃən]

eventually: 最后,终于,最终

indicates: 表明

context: 环境,上下文,语境 ['kɒntekst]

access: 访问,取得(值),进入

abbreviated: 缩写 [ə'briːvieɪt]

navigate: 导航,顺利通过 ['nævɪɡeɪt]

component: 要素,零件

storyboard: 情节串联图版

attribute: 属性

inspector: 检查员,巡官,(导航栏)

adapt: 适应(适配屏幕)

template: 模版,样板 ['templeɪt]

generate: 产生,生成

bundle: 捆,束,大堆,组,群

landscape: 横向

delegate:委托,授权

configuration: 配置

assume: 假定

leftmost: 最左边的

收藏
0
sina weixin mail 回到顶部