To make it short, I\'m registering the following NSNotification
listener in ClassA
(in viewDidLoad
):
[[NSNotificationCente
Your @selector
needs a :
character if it is to take an argument:
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(playSong:) name:@"playNotification" object:nil];
Instances of ClassA
do not respond to the playSong
selector, but they do respond to the playSong:
selector.