marchv / UIDeviceExt

<REPLACED BY https://github.com/marchv/UIScreenExtension> UIDeviceExt provide class methods to get information about pixels-per-centimeter/inch and points-per-centimeter/inch of an iPod, iPhone or iPad. This information can be used to render graphics that has dimensions of known size in centimeters, etc.
MIT License
7 stars 1 forks source link

New Devices #3

Open scinfu opened 8 years ago

scinfu commented 8 years ago

Can you update with new devices ?

Thank you

marchv commented 8 years ago

Hi scinfo and thanks for your interest!

I will try to look into this at some point. But since I made this framework the Apple introduced Zoom-mode on iPhone 6 and later. I think this challenges this relatively simple solution...

Cheers!

scinfu commented 8 years ago

I added new iPad Pro 9.7 and 12.9 #4

With last update i think you have write wrong values , like iPhone 6 plus , ppi are 401.0f but i this the rignt value is 200.5 . 401 is in ddp .

marchv commented 7 years ago

Hi @scinfu :) I know it has been a while but I have just reimplemented this for Swift (as a pod), please checkout https://github.com/marchv/UIScreenExtension. I might also introduce support for ObjC too. The new implementation should also take care of zoom mode. Cheers!

scinfu commented 7 years ago

Nice, thank you