Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>From the <a href="http://developer.apple.com/library/ios/#samplecode/ExternalDisplay/Listings/Classes_ExternalDisplayViewController_m.html#//apple_ref/doc/uid/DTS40010724-Classes_ExternalDisplayViewController_m-DontLinkElementID_6" rel="nofollow">ExternalDisplay</a> sample code in the iOS Developer Library:</p> <blockquote> <p>To display content on an external display, do the following:</p> <ol> <li><p>Use the screens class method of the UIScreen class to determine if an external display is available.</p></li> <li><p>If an external screen is available, get the screen object and look at the values in its availableModes property. This property contains the configurations supported by the screen.</p></li> <li><p>Select the UIScreenMode object corresponding to the desired resolution and assign it to the currentMode property of the screen object.</p></li> <li><p>Create a new window object (UIWindow) to display your content.</p></li> <li><p>Assign the screen object to the screen property of your new window.</p></li> <li><p>Configure the window (by adding views or setting up your OpenGL ES rendering context).</p></li> <li><p>Show the window.</p></li> </ol> </blockquote> <p>Looking at the sample code you would have two <code>UIWindow</code> objects, each displays the views that would would like to show on that given display. So you could have a <code>UIViewController</code> with a flag <code>isExternalScreen</code>, and when true it would not show the certain views.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload