You can write an application to handle 2 UIS screens using Airplay and Apple TV, and then install a separate root view controller for both UIScreen TV and iPad UIScreen. Then show the image or slideshow on the TV view controller and start it from the events of your iPad controller!
AMENDMENT AFTER COMMENT CLIFS:
So, firstly, in your application deletion in the didFinishLaunchingWithOptions or didFinishLaunching file, the notification about receiving the screen really connected.
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(screenDidConnect:) name:UIScreenDidConnectNotification object:nil];
Then you need to save the link to your separate window and click on the controllers on it, as in any other window.
- (void) myScreenInit:(UIScreen *)connectedScreen:(UIViewController*)mynewViewController { //Intitialise TV Screen if(!windowTV) { CGRect frame = connectedScreen.bounds; windowTV = [[UIWindow alloc] initWithFrame:frame]; windowTV.backgroundColor = [UIColor clearColor]; [windowTV setScreen:connectedScreen]; windowTV.hidden = NO; } UIViewController* release = windowTV.rootViewController; windowTV.rootViewController = mynewViewController; [release removeFromParentViewController]; [release release]; } - (void)setTvController:(UIViewController*)mynewViewController { UIViewController* release = windowTV.rootViewController; windowTV.rootViewController = mynewViewController; [release removeFromParentViewController]; [release release]; } - (void)screenDidConnect:(NSNotification *)notification { [self myScreenInit:[notification object]]; }
source share