How to determine screen size in iOS

The UIDevice class can help us do that like so:

This will work fine in your View Controllers and App Delegate files.

I’ve got a full working demo project on GitHub: https://github.com/versluis/ScreenSize

Further Reading:

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.