I am using the following code (in AppDelegate) to detect if the device is iPhone 5
bool isiPhone5 = CGSizeEqualToSize([[UIScreen mainScreen] preferredMode].size,CGSizeMake(640, 1136));
it returns false always. this is not the first time I used that code. eventhe NSLog for that returns {320, 480}
NSLog(@"%@",NSStringFromCGSize([[UIScreen mainScreen] bounds].size));
NOTE: The app was for iPad only and then I made it universal. so I will have 2 storyBoards that is why I need the detection code.
Thanks