if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone){
CGSize result = [[UIScreen mainScreen] bounds].size;
//NSLog(@"phonesize%@",result);
if(result.height > 500){
NSLog(@"iPhone 5");
}
else{
NSLog(@"iPhone 4");
}
}
My Mac OS is 10.7.2 and Xcode 4.5.2.I used above code to find device is iPhone 4 or iPhone 5 It is giving iPhone4 when i uses iPhone5.I did set launch image and icon image. Is there anything else i missed out?