I setup my iPhone with AirPlay connected to my AppleTV.
I run this method and unfortunately have only 1 screen (main screen) where I should get 2 on an actual device.
Note: this works with the simulator.
Any idea?
-(void)airplayInit {
NSArray *screens = [UIScreen screens];
NSLog(@"Airplay screens #%d", screens.count-1);
}