The following returns a CGRect holding the size of your device’s screen in points.
[[UIScreen mainScreen] bounds];
Note that the following would return the size of your screen without the status bar. Try to think of this as the frame rectangle for your application’s window.
[[UIScreen mainScreen] applicationFrame];
2
solved How can I detect a simulated iOS device’s screen size?