Sunday, 3 December 2017

Device Type Parameter


If you want autolayout means setting constraint, font, color according to device like - iPhone, iPad or for landscape
then you need to identify divice


1. IPHONE

Width - Compact
Height - Regular

2. IPAD

Width - Regular
Height - Regular

3. IPHONE LANDSCAPE

Width - Regular
Height - Compact

No comments:

Post a Comment

Different type to create constraint programmatically

Do you plan to have a squared  UIView  of  width: 100  and  Height: 100  centered inside the  UIView of an  UIViewController ? If so, y...