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

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -