Created
December 2, 2011 17:41
-
-
Save joshbuhler/1424129 to your computer and use it in GitHub Desktop.
MoviePlayer notifications
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[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