iphoneDeviceScale

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
iphoneDeviceScale()
Summary

Returns the scale of the device's screen(relative to a non-Retina display)

Introduced4.6
OSios
Platformsmobile
Example
put iphoneDeviceScale() into theScaleFactor
Values
NameTypeDescription
return

The iphoneDeviceScale function returns - 2 on a retina display - 1 otherwise

RelatedCommand: iphoneUseDeviceResolution
Function: iphoneDeviceResolution
Description

Use the iphoneDeviceScale function to find the scale of the device's screen (relative to a non-Retinal display)

The iphoneDeviceScale function returns the scale of the device's screen (relative to a non-Retinal display), this is 2 on a retina display and 1 otherwise.