On the new iPhone X, what would be the most proper way to get both top and bottom height for the unsafe areas?
Ios – Get safe area inset top and bottom heights
iosiphone-xsafearealayoutguide
Related Topic
- Ios – How to make a UITextField move up when the keyboard is present – on starting to edit
- Ios – Passing data between view controllers
- Ios – performSelector may cause a leak because its selector is unknown
- Ios – How to set cornerRadius for only top-left and top-right corner of a UIView
- Ios – How to develop or migrate apps for iPhone 5 screen resolution
- Ios – How to animate constraint changes
- R – CMake: how do you copy private frameworks into the application bundle under OS X
- Ios – Seeing black bars at the top and bottom of the iPhone X Simulator
Best Answer
Try this :
In Objective C
In Swift
In Swift - iOS 13.0 and above
// Use the first element from windows array as KeyWindow deprecated