In my application, I listen to keyboard notifications:
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillShow) name:UIKeyboardWillShowNotification object:nil];
I just removed the error that caused the crash in my application,
I have a modal view with a user interface (which is destroyed and recreated every time it is presented).
I got a crash the second time I started using it before adding this line of code:
[[NSNotificationCenter defaultCenter] removeObserver:self];
Does anyone know why not remove the observer for the freed object caused by the failure?
source share