Sundeep Saluja
Sundeep Saluja

Reputation: 1249

Difference between Auto layouts and Size Classes

I have found some posts describing difference between when to use Auto layouts and When to use Size classes.

But still I am not able to understand the difference between these two.

If any one can suggest the difference or share a good link.

Thanks In Advance!

Upvotes: 1

Views: 1117

Answers (1)

Muhammad Noman
Muhammad Noman

Reputation: 1576

Size classes is used when we design app more than devices to make alignment of elements according to device design.like portrait and landscape design differ to each other. enter image description here

Auto Layout is needed. In Storyboard, you place a button right in the center of the view. Run the app on both iPhone Retina (3.5-inch) and iPhone Retina (4-inch) simulators. basically its used for same alignment on different size device.

enter image description here

Upvotes: 5

Related Questions