From 644eeb127ca84ef249a7915da087f8445e150d2d Mon Sep 17 00:00:00 2001 From: Sui Jingyun Date: Sun, 15 Jun 2014 16:03:55 +0800 Subject: [PATCH] Update 10_Properties.html remove duplications --- chapter2/10_Properties.html | 4 ---- 1 file changed, 4 deletions(-) diff --git a/chapter2/10_Properties.html b/chapter2/10_Properties.html index e5c3a012..bea227b2 100644 --- a/chapter2/10_Properties.html +++ b/chapter2/10_Properties.html @@ -778,10 +778,6 @@ println("the volume of fourByFiveByTwo is \(fourByFiveByTwo.volume)")

willSet监视器会将新的属性值作为固定参数传入,在willSet的实现代码中可以为这个参数指定一个名称,如果不指定则参数仍然可用,这时使用默认名称newValue表示。

类似地,didSet监视器会将旧的属性值作为参数传入,可以为该参数命名或者使用默认参数名oldValue

-

<<<<<<< HEAD

-
-

注意:

-

willSetdidSet监视器在属性初始化过程中不会被调用,他们只会当属性的值在初始化之外的地方被设置时被调用。

注意:

willSetdidSet监视器在属性初始化过程中不会被调用,它们只会当属性的值在初始化之外的地方被设置时被调用。