Created
December 13, 2012 08:01
-
-
Save zapsleep/4274892 to your computer and use it in GitHub Desktop.
Check multiple screens and mirroring
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
for (UIScreen *screen in [UIScreen screens]) | |
{ | |
if ([screen respondsToSelector:@selector(mirroredScreen)] && | |
[screen mirroredScreen] == [UIScreen mainScreen]) | |
{ | |
// The main screen is being mirrored. | |
} | |
else | |
{ | |
// The main screen is not being mirrored, or | |
// you are not running on a compatible device. | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment