How to use the AutoRetina class - dwd31415/AutoRetina GitHub Wiki
Once you have set up your Project, you can use the AutoRetina Toolkit. There are three ways of using the AutoRetina class, all of them can be called from every part of your source code, but the best way is it to call the function of your choice at the StartUp of your app in the Start() method.
-
AutoSwitchResolution(iPhoneGeneration[] nonRetinaDevices)
This function disables retina for all devices you passed to the function.
Example:
AutoRetina.AutoSwitchResolution (new iPhoneGeneration[]{iPhoneGeneration.iPad2Gen,iPhoneGeneration.iPhone4,iPhoneGeneration.iPodTouch4Gen});
-
AutoSwitchResolution(int minRetinaGraphicsMemory)
This function disables retina for all devices with less graphics memory than the given parameter.
Example:
AutoRetina.AutoSwitchResolution (65);
-
AutoSwitchResolution(AppleGPUS minRetinaGPU)
This function disables retina for all devices with a less powerful CPU/GPU then the parameter.
Example:
AutoRetina.AutoSwitchResolution (AppleGPUS.A4);