swift - iOS How to get Points to Pixel Conversion Ratio? -


some devices have 1x ratio, others have 2x, , newest ones have 3x. there way retrieve ratio count without hard coding it?

sorry repeated question, apparently suck @ googling. found out answered posted this.

> uiscreen.main.scale


Comments

Popular posts from this blog

The SDK directory does not exist (ubuntu 16.04) (react native) -

python - How to clone or copy a list? -