Search code examples
iosipadairplaymirroringapple-tv

Show different content on 2 windows in and IOS app


I am using Airplay mirroring for my iPad Application to connect Mac Screen where I want to show my app simultaneously on ipad and Mac screen. Now that I have different resolutions of my mac and ipad. How would I be able to show 2 different views. Different in sense of resolutions 1024 X 768 for iPad and 1920 X 1080 for Mac. Because I am using a lot of images as backgrounds So If Make graphic images for both the mac screen and iPad and build separate View controllers for both windows, how would I Make both windows work simultaneously ?


Solution

  • It's just a second UIScreen that you can attach a UIWindow. You add content to it like you would any other and manage it's content the same way.

    Apple provide a good example here: https://developer.apple.com/library/ios/documentation/WindowsViews/Conceptual/WindowAndScreenGuide/UsingExternalDisplay/UsingExternalDisplay.html