iOS Apprentice Tutorial 3 v5.0 -page 231 Exercise: RemoveObserver()

Hi,

On Page 231for iOS Apprentice Tutorial 3 v5.0 there is an exercise that asks "what happens if you remove the call to removeObserver() from deinit? Hint: add print(self) inside the closure.

I did just that and performed the exercise repro steps, but I’m not seeing any real difference in debug output with or without the call to removeObserver() from deinit.

what should I be seeing? where exactly should the print(self) be added within the closure?

thanks in advance!

WC

It doesn’t matter where you put the print() as long as it is inside the closure but outside the if-statement, so for example just before the if let strongSelf = self.

Ok, will give that a try.

Thanks and happy holidays!

Cheers.

WC