Skip to content

Instantly share code, notes, and snippets.

@joshbuhler
Created December 2, 2011 17:41
Show Gist options
  • Save joshbuhler/1424129 to your computer and use it in GitHub Desktop.
Save joshbuhler/1424129 to your computer and use it in GitHub Desktop.
MoviePlayer notifications
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(moviePlaybackDidStart:)
name:@"UIMoviePlayerControllerDidEnterFullscreenNotification"
object:nil];
// Apparently Apple had this notification misspelled in iOS < 4.3
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(moviePlaybackDidStart:)
name:@"UIMoviePlayerControllerDidEnterFullcreenNotification"
object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(moviePlaybackDidEnd:)
name:@"UIMoviePlayerControllerWillExitFullscreenNotification"
object:nil];
// Apparently Apple had this notification misspelled in iOS < 4.3
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(moviePlaybackDidEnd:)
name:@"UIMoviePlayerControllerWillExitFullcreenNotification"
object:nil];
//UIMoviePlayerControllerDidExitFullcreenNotification
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(moviePlaybackDidEnd:)
name:@"UIMoviePlayerControllerDidExitFullcreenNotification"
object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(onWeatherViewClose:)
name:@"weatherViewClosing"
object:nil];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment