Easiest way to customize UI for all iPhone sizes using xib
Autoresizing
is the easiest way to customize the UI to support all screen sizes in portrait mode as @Nishant explained instead of using constraints
in AutoLayout
. But if you want to customize the same UI in landscape and portrait then use AutoLayout
and Size Classes
as explained by @ezCoding.
source to share
In your storyboard, make sure you are using the settings Any Width | Any Height
:
Also check Use AutoLayout
and Use Size Classes
:
It will take some time to read this to figure it out .
source to share