When working with an NSNotification object, you’ll want to familiarize yourself the userInfo dictionary, which provides access to any additional objects that may be of interest to the receiver. Understanding the object method may also be helpful if you are using the same notification on more than one object.
userInfo Dictionary
Below I add an observer forMPMoviePlayerContentPreloadDidFinishNotification, which will send a message to the methodmoviePreloadDidFinish: when a MoviePlayerControllerobject has finished playing:
mp = [[MPMoviePlayerController alloc] initWithContentURL:movieURL];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(moviePreloadDidFinish:)
name:MPMoviePlayerContentPrelo