was reading errata and it says for addObserverForName we should have new @property id observer and use it in removeObserver in viewDidUnload with self.observer instead of "self"
Now since i was refactoring my code for this change and stuck at +queryForCloudHistory in WeightHistory.
I wonder how it works for [[NSNotificationCenter defaultCenter] removeObserver:self ]
i always tried to think "self" as this pointer in some sense but removeObserver inside ^block with "self" just works somehow..not sure if I need __block type variable just before addObserverForName call and use it inside block to removeObserver
was reading errata and it says for addObserverForName we should have new @property id observer and use it in removeObserver in viewDidUnload with self.observer instead of "self"
Now since i was refactoring my code for this change and stuck at +queryForCloudHistory in WeightHistory.
I wonder how it works for [[NSNotificationCenter defaultCenter]
removeObserver:self ]
i always tried to think "self" as this pointer in some sense but removeObserver inside ^block with "self" just works somehow..not sure if I need __block type variable just before addObserverForName call and use it inside block to removeObserver
Or I just need to go to sleeeeep...