Created
January 28, 2013 08:04
-
-
Save ljanzik/4653793 to your computer and use it in GitHub Desktop.
iOS :: External Screen Notifications
This file contains 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(screenDidConnect:) | |
name:UIScreenDidConnectNotification | |
object:nil]; | |
[[NSNotificationCenter defaultCenter] addObserver:self | |
selector:@selector(screenDidConnect:) | |
name:UIScreenDidDisconnectNotification | |
object:nil]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment