Mam obiektywną klasę C. W nim stworzyłem metodę init i ustawiłem w niej NSNotification
//Set up NSNotification
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(getData)
name:@"Answer Submitted"
object:nil];
Gdzie mam ustawić [[NSNotificationCenter defaultCenter] removeObserver:self]w tej klasie? Wiem, że w przypadku a UIViewControllermogę dodać to do viewDidUnloadmetody. Co więc należy zrobić, jeśli właśnie utworzyłem obiektywną klasę c?
-(void)dealloca następnie dodać removeObserser:self. Jest to najbardziej zalecany sposóbremoveObservers:self
deallocmetodę w iOS 6?