iPhone 4 and 5 resolution

hi, as i know iPhone 4 screen resolution (640 x 960) and iPhone 5 screen resolution (640 x 1136). i made my project on (640 x 1136) that i can change my resolution for iPhone 4 using this code : Screen.SetResolution (640, 960, true); and a condition iphone.generation

i test it on my iphone 4 and it doesn’t work. any suggestion.

Thank you

function Start ()
{
Screen.SetResolution (640, 960, true);
}