Type Property

screens

Returns an array containing all of the screens attached to the device.

Declaration

@property(class, nonatomic, readonly) NSArray<UIScreen *> *screens;

Return Value

An array of UIScreen objects.

Discussion

The returned array includes the main screen plus any additional screens connected to the device. The main screen is always at index 0.

Not all devices support external displays. Currently, external displays are supported by iPhone and iPod touch devices with Retina displays and iPad. Older devices, such as the iPhone 3GS do not support external displays.

See Also

Getting the Available Screens

mainScreen

Returns the screen object representing the device’s screen.

mirroredScreen

The screen being mirrored by an external display.