From 047e8b91bccd5675ffdabf1ac52ac1180361118f Mon Sep 17 00:00:00 2001 From: Hawstein Date: Mon, 9 Jun 2014 10:11:53 +0800 Subject: [PATCH] 03/06 declaration attributes Done --- source/chapter3/06_Attributes.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/chapter3/06_Attributes.md b/source/chapter3/06_Attributes.md index 6f6896d1..425ecbda 100644 --- a/source/chapter3/06_Attributes.md +++ b/source/chapter3/06_Attributes.md @@ -86,6 +86,8 @@ class ExampleClass { ### Interface Builder使用的声明特性 +Interface Builder特性是Interface Builder用来与Xcode同步的声明特性。Swift提供了以下的Interface Builder特性:`IBAction`,`IBDesignable`,`IBInspectable`,以及`IBOutlet`。这些特性与Objective-C中对应的特性在概念上是相同的。 +`IBOutlet`和`IBInspectable`用于修饰一个类的属性声明;`IBAction`特性用于修饰一个类的方法声明;`IBDesignable`用于修饰类的声明。 ## 类型特性