Post de NSNotificationCenter que causa la excepción "EXC_BAD_ACCESS"
A UIViewController
se agrega al centro predeterminado:
[[NSNotificationCenter defaultCenter]
addObserver:self
selector:@selector(editFood)
name:@"editFood"
object:nil];
Entonces unUITableView
delegado NSObject publica unNSNotification
:
[[NSNotificationCenter defaultCenter]
postNotificationName:@"editFood"
object:self];
Durante el tiempo de ejecución, obtiene un EXC_BAD_ACCESS excepción.
Es eldefaultCenter
ser liberado en alguna parte? El mismo concepto funciona cuando publico una notificación en un UIViewController desde un UIViewController, pero eso no debería importar, ¿verdad?