I am trying to display an image on an Apple TV using Airplay without mirroring mode. But the [UIScreen screen] method always returns 1 screen (main screen) when mirroring is off. I want my snapshot to display the same way as the photo app (Airplay without mirroring).
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(screenDidConnect:) name:UIScreenDidConnectNotification object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(screenDidDisconnect:) name:UIScreenDidDisconnectNotification object:nil];
I used them, but they only work when mirroring is on.
Please help me. Thanks! I am using Apple TV1 and iPad 2 (iOS 5.0.1)
source share