Use
[UIScreen mainScreen].scale;
this will give you the exact scale as per device.
In Swift 3
UIScreen.main.scale
Cheers.
Use
[UIScreen mainScreen].scale;
this will give you the exact scale as per device.
In Swift 3
UIScreen.main.scale
Cheers.