I use NSNotificationCenter:
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(playNow:) name:@"PlayNow" object:nil];
and Post:
[[NSNotificationCenter defaultCenter] postNotificationName:@"PlayNow" object:nil userInfo:noteInfoDictionary];
where self is instance of @interface MyPlayer : NSObject
And when I call it works great with most cases, but when i dealloc and alloc back MyPlayer instance i'm getting this error:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIView playNow:]: unrecognized selector sent to instance 0x8929150'
How it's possible that i'm getting error from UIView?