From 7503c7548a08adcead246b66f71352f3e375ff56 Mon Sep 17 00:00:00 2001 From: Shiny Zhu Date: Sun, 8 Jun 2014 09:03:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E7=89=87=E7=9B=B4=E6=8E=A5=E4=BD=BF?= =?UTF-8?q?=E7=94=A8HTML=E4=BB=A3=E7=A0=81=EF=BC=8C=E4=BB=A5=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=98=BE=E7=A4=BA=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/chapter2/10_Properties.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/chapter2/10_Properties.md b/source/chapter2/10_Properties.md index bd3b162b..6b3f00e4 100644 --- a/source/chapter2/10_Properties.md +++ b/source/chapter2/10_Properties.md @@ -152,4 +152,8 @@ println("square.origin is now at (\(square.origin.x), \(square.origin.y))") `center`属性之后被设置了一个新的值`(15, 15)`,表示向右上方移动正方形到如图所示橙色正方形的位置。设置属性`center`的值会调用setter来修改属性`origin`的`x`和`y`的值,从而实现移动正方形到新的位置。 -![Computed Properties sample](https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/Art/computedProperties_2x.png) \ No newline at end of file +Computed Properties sample + + +### Setter的便捷方式 +