Close Menu
  • Home
  • AI
  • Big Data
  • Cloud Computing
  • iOS Development
  • IoT
  • IT/ Cybersecurity
  • Tech
    • Nanotechnology
    • Green Technology
    • Apple
    • Software Development
    • Software Engineering

Subscribe to Updates

Get the latest technology news from Bigteetechhub about IT, Cybersecurity and Big Data.

    What's Hot

    Will Outrageous Gas Prices Restart the EV Boom?

    May 12, 2026

    Four ways Google Research scientists have been using Empirical Research Assistance

    May 12, 2026

    Streamlined monitoring and debugging for Amazon EMR on EC2

    May 12, 2026
    Facebook X (Twitter) Instagram
    Facebook X (Twitter) Instagram
    Big Tee Tech Hub
    • Home
    • AI
    • Big Data
    • Cloud Computing
    • iOS Development
    • IoT
    • IT/ Cybersecurity
    • Tech
      • Nanotechnology
      • Green Technology
      • Apple
      • Software Development
      • Software Engineering
    Big Tee Tech Hub
    Home»iOS Development»iphone – How to retrieve the real physical screen DPI/PPI on iOS to draw a rectangle with an exact physical size?
    iOS Development

    iphone – How to retrieve the real physical screen DPI/PPI on iOS to draw a rectangle with an exact physical size?

    big tee tech hubBy big tee tech hubMay 8, 2026001 Min Read
    Share Facebook Twitter Pinterest Copy Link LinkedIn Tumblr Email Telegram WhatsApp
    Follow Us
    Google News Flipboard
    iphone – How to retrieve the real physical screen DPI/PPI on iOS to draw a rectangle with an exact physical size?
    Share
    Facebook Twitter LinkedIn Pinterest Email Copy Link


    I’m developing a Delphi FMX application for iOS and I need to draw UI elements with a real physical size, for example a rectangle measuring exactly 3 cm × 3 cm on screen.

    On Android this is relatively straightforward because DisplayMetrics exposes densityDpi, but on iOS I only see APIs such as:

    UIScreen.mainScreen.scale
    UIScreen.mainScreen.bounds
    UIScreen.mainScreen.nativeBounds
    

    From what I understand, scale is only the logical Retina scaling factor (2x/3x), not the actual physical PPI/DPI of the display.

    Questions:

    1. Is there any public iOS API to retrieve the real physical screen PPI/DPI?

    2. If not, what is the recommended way to draw UI elements with a real-world physical size (cm/mm)?

    3. Is maintaining a device-model → PPI lookup table the only solution?

    4. How do professional iOS apps handle this problem?

    Example:

    // Goal: draw a rectangle exactly 3 cm × 3 cm
    

    I would appreciate clarification on the recommended iOS approach here.



    Source link

    DPIPPI draw exact iOS iPhone physical Real rectangle Retrieve screen size
    Follow on Google News Follow on Flipboard
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email Copy Link
    tonirufai
    big tee tech hub
    • Website

    Related Posts

    ios – How to add shadow to border?

    May 12, 2026

    How filmmakers are redefining the art form with MAMI Select: Filmed on iPhone

    May 12, 2026

    My Outer Loop | Cocoanetics

    May 11, 2026
    Add A Comment
    Leave A Reply Cancel Reply

    Editors Picks

    Will Outrageous Gas Prices Restart the EV Boom?

    May 12, 2026

    Four ways Google Research scientists have been using Empirical Research Assistance

    May 12, 2026

    Streamlined monitoring and debugging for Amazon EMR on EC2

    May 12, 2026

    Tunable polaritonic topologies generated by non-local photonic modes

    May 12, 2026
    Timer Code
    15 Second Timer for Articles
    20
    About Us
    About Us

    Welcome To big tee tech hub. Big tee tech hub is a Professional seo tools Platform. Here we will provide you only interesting content, which you will like very much. We’re dedicated to providing you the best of seo tools, with a focus on dependability and tools. We’re working to turn our passion for seo tools into a booming online website. We hope you enjoy our seo tools as much as we enjoy offering them to you.

    Don't Miss!

    Will Outrageous Gas Prices Restart the EV Boom?

    May 12, 2026

    Four ways Google Research scientists have been using Empirical Research Assistance

    May 12, 2026

    Subscribe to Updates

    Get the latest technology news from Bigteetechhub about IT, Cybersecurity and Big Data.

      • About Us
      • Contact Us
      • Disclaimer
      • Privacy Policy
      • Terms and Conditions
      © 2026 bigteetechhub.All Right Reserved

      Type above and press Enter to search. Press Esc to cancel.