iOS: Getting Screen Size
To obtain the screen size based on the orientation and type of device, use this: screenWidth will return the width, and screenHeight, the height of your screen, even when your device is in the landscape orientation.
To obtain the screen size based on the orientation and type of device, use this: screenWidth will return the width, and screenHeight, the height of your screen, even when your device is in the landscape orientation.
Sometimes you might like your status bar in your iOS app to be removed so that it’s more aesthetically pleasing. Try this snippet of code in your UIViewController classes: