Icon

iOS Points

Beneton Software

You must be logged in to obtain assets

Description

Simple extension for iOS to convert points into pixels and vice versa.

To understand what points are, I suggest reading this article: http://blog.fluidui.com/designing-for-mobile-101-pixels-points-and-resolutions/

TL;DR:

  • On the iPhone, 1 point is equal to 1 pixel when the resolution is 163DPI. This was the case for all the iPhones before the Retina era.
  • At 326DPI, like the iPhone 4, 5 and 6, 1 point is equal to 2 pixels across and 2 pixels down, or 4 total pixels. Meaning your 100x100 image will render a quarter the size on a retina device if rendered by counting pixels alone.
  • At 401DPI like the iPhone 6+, 1 point is equal to 3 pixels across and 3 pixels down, or 9 total pixels.

I made this extension because some of my extensions for iOS take or return values in points, and it's annoying to have to detect the device type to convert from/to pixels.

More info

End User Licence Agreement (EULA).

Age Rating: None

Version

GMS1 - Version 1.0.0. Published July 19, 2017

Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait