Load Images based on iOS Screen Size
Monkey Forums/Monkey Code/Load Images based on iOS Screen Size
| ||
Where you create different images for different displays (e.g. background1024.png for iPad, background960.png for retina and background480.png for iPhone 3)Local displaysize:String = "480" Local dh:Int = DeviceHeight() + DeviceWidth() Select dh Case 800 '480 + 320 displaysize="480" Case 1600 '960 + 640 RETINA displaysize="960" Case 1792 '1024 + 768 iPAD displaysize="1024" End Select Local filename:String = "" filename = "background" + displaysize + ".png" menu = LoadImage (filename) |