Possible Duplicate:
How to detect iPhone 5 (widescreen devices)?
I would to know if there is a simple method to know if the device is iPhone 4 or iPhone 5 ? Maybe there is a global variable that stocks this information ? I would like to do something like this :
if (device == iphone 5){
frame.size = 300px;
}
else if (device == iphone 4){
frame.size = 200px;
}
Just a very simple example.