From the course: iOS Development: Auto Layout Programmatically

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Challenge: Pasta

Challenge: Pasta - iOS Tutorial

From the course: iOS Development: Auto Layout Programmatically

Start my 1-month free trial

Challenge: Pasta

(electronic swoosh) - [Instructor] You're ready for another challenge. This time, I've set up the Pasta View Controller with the Image on top, the Label under that, and the Buttons under those. I've set larger fonts too. Your job is to do the following, make the Pasta Label between one and two times the intrinsic height. Make the Button height between one and a half to three times the intrinsic height. Make the width of the Back Button smaller than the Order Button. And the width of the Back Button twice the intrinsic width. When you're done, test this by changing the Label font size to 172 point, and the Back Button to 148 points. You'll see I left code to make the changes easy under Changes To Views. One rule, don't add anymore constraints, but you can change the ones that are there. Stop the video and give it a try.

Contents