First you'd have to read this reference on programming multiple displays.
But in this specific situation I think, you are looking for [UIScreen screens]
which returns an NSArray
of UIScreen
objects. The UIScreen
with index 0 is the internal display and the one with the index 1 is the Apple TV's display. From now on, according to this documentation and its examples you only need to create a UIWindow
which has the screen property of the UIScreen
you want to display on. Then you can easily add layers, views, etc. to that UIWindow.