03/06 declaration attributes Done
This commit is contained in:
@ -86,6 +86,8 @@ class ExampleClass {
|
|||||||
|
|
||||||
### Interface Builder使用的声明特性
|
### Interface Builder使用的声明特性
|
||||||
|
|
||||||
|
Interface Builder特性是Interface Builder用来与Xcode同步的声明特性。Swift提供了以下的Interface Builder特性:`IBAction`,`IBDesignable`,`IBInspectable`,以及`IBOutlet`。这些特性与Objective-C中对应的特性在概念上是相同的。
|
||||||
|
|
||||||
|
`IBOutlet`和`IBInspectable`用于修饰一个类的属性声明;`IBAction`特性用于修饰一个类的方法声明;`IBDesignable`用于修饰类的声明。
|
||||||
|
|
||||||
## 类型特性
|
## 类型特性
|
||||||
|
|||||||
Reference in New Issue
Block a user