1. Home
  2. Docs
  3. iOS
  4. Fundamentals
  5. Screen Resolution

Screen Resolution

Screen Resolution in iOS Development

Screen resolution is a critical factor in iOS development, as it directly impacts how user interfaces and app content are displayed across different devices. Apple uses a combination of physical resolution, logical resolution, and pixel density to ensure consistency and high-quality visual experiences.


Key Concepts in iOS Screen Resolution

  1. Physical Resolution:
    • The total number of pixels on a device’s screen, expressed as width × height (e.g., 2532 × 1170 pixels for iPhone 13).
    • Measured in pixels.
  2. Logical Resolution:
    • The virtual resolution used by iOS to design layouts, independent of the physical resolution.
    • Defined in points (not pixels), where 1 point may represent multiple pixels depending on the screen’s pixel density.
  3. Pixel Density (PPI):
    • Measured in pixels per inch (PPI).
    • Devices with higher PPI provide sharper and crisper images.
    • Retina and Super Retina displays have high pixel densities where the human eye cannot distinguish individual pixels at a normal viewing distance.
  4. Scaling Factor:
    • Determines how many pixels represent a single point on the screen.
    • Common scaling factors:
      • 1x: Older, non-Retina displays (e.g., original iPhone).
      • 2x: Retina displays (e.g., iPhone 4, iPhone 8).
      • 3x: Super Retina displays (e.g., iPhone 11 Pro, iPhone 13 Pro).

Common Screen Resolutions by Device

iPhones

DevicePhysical Resolution (px)Logical Resolution (points)Scale FactorPPI
iPhone SE (1st Gen)1136 × 640568 × 3202x326
iPhone 81334 × 750667 × 3752x326
iPhone 111792 × 828896 × 4142x326
iPhone 13 Mini2340 × 1080780 × 3603x476
iPhone 14 Pro2556 × 1179852 × 3933x460
iPhone 15 Pro Max2796 × 1290932 × 4303x460

iPads

DevicePhysical Resolution (px)Logical Resolution (points)Scale FactorPPI
iPad (9th Gen)2160 × 16201080 × 8102x264
iPad Mini (6th Gen)2266 × 14881133 × 7442x326
iPad Air (5th Gen)2360 × 16401180 × 8202x264
iPad Pro 11″ (3rd Gen)2388 × 16681194 × 8342x264
iPad Pro 12.9″ (5th Gen)2732 × 20481366 × 10242x264

Designing for Multiple Screen Resolutions

  1. Use Auto Layout:
    • Auto Layout in Interface Builder helps create adaptive UIs that work across all screen sizes and orientations.
  2. Use Size Classes:
    • Define layouts based on Compact and Regular size classes for width and height.
  3. Assets and Image Scaling:
    • Provide images in multiple resolutions:
      • @1x: For non-Retina displays (rarely needed today).
      • @2x: For Retina displays.
      • @3x: For Super Retina displays.
  4. Safe Areas:
    • Account for safe area insets to handle notches, rounded corners, and dynamic island features.
  5. Preview in Xcode:
    • Use Xcode’s Preview and Simulator to test your app on different screen sizes and resolutions.

Conclusion

Screen resolution plays a vital role in iOS development, especially when creating responsive and visually appealing applications. By leveraging tools like Auto Layout, scalable assets, and Xcode previews, developers can ensure their apps look great on all iOS devices, from compact iPhones to large iPads.