I am using the code below to get screen width and height when device is in landscape.
float widthScreen = [UIScreen mainScreen].bounds.size.width;
float heightScreen = [UIScreen mainScreen].bounds.size.height;
But the problem is in iPhone 4S (iOS7) the width < the height
In iPhone 6 (iOS9): widthScreen 667 heightScreen 375
In iPhone 4S (iOS7): widthScreen 320 heightScreen 480
Does it happened on all iOS7 device or only iPhone4S.
what should I do to fix. Any help would be appreciated