What if I want to assign a property to itself?
问题 If I attempt to run the following code: photographer = photographer I get the error: Assigning a property to itself. I want to assign the property to itself to force the photographer didSet block to run. Here's a real-life example: In the "16. Segues and Text Fields" lecture of the Winter 2013 Stanford iOS course (13:20), the professor recommends writing code similar to the following: @IBOutlet weak var photographerLabel: UILabel! var photographer: Photographer? { didSet { self.title =