Last Revision:
Version 1.0, 2013-04-02
demonstrates how to use the second display independently when AirPlay is enabled.
Build Requirements:
iOS 6.0 SDK or later
Runtime Requirements:
iOS 6.0 or later

Demonstrates how to provide a richer experience to your users when they are using Airplay by displaying your UI on the iPhone/iPad and your app/game contents on the second display.

When AirPlay Mirroring is enabled, by default the same image appears on the screen of the host device and the external display. This sample demonstrates how to use the second display independently by showing separate content on each display. The sample includes a simple OpenGL ES view which renders a rotating cube and lets you change the cube's rotating radius using a slider. When there is no second display, both the slider and the OpenGL ES object are displayed on the iOS device's display; when a second display is activated, only the UI appears on the host device's display while the external display is used to show the OpenGL ES content. The sample uses OpenAL for 3D sound playback.