阅读背景:

在Swift中,当从init()调用didSet时不会触发

来源:互联网 

I’ve got a car and a driver. They mutually reference each other. In the car’s init() I create a driver and assign it to the driver member. The driver member has a didSet method which is supposed to set the driver’s car, thus mutually link them to each other.I’ve got a car and a driver. They mutually refe




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: