Instance Property

pixelAspectRatio

The aspect ratio of a single pixel.

Declaration

@property(readonly, nonatomic) CGFloat pixelAspectRatio;

Discussion

The aspect ratio is defined as x/y, where x is the width of the pixel and y is the height of the pixel.

See Also

Accessing the Screen Mode Attributes

size

The screen size, measured in pixels.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software