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: Peanut butter

Challenge: Peanut butter - iOS Tutorial

From the course: iOS Development: Auto Layout Programmatically

Start my 1-month free trial

Challenge: Peanut butter

- [Instructor] With your knowledge of the visual format language, it's time for another challenge. You'll try to set up a similar layout as the oatmeal challenge, but this time with the peanut butter sandwich content in the peanut butter view controller and the visual format language. Copy the hamburger layout code and change it to make this layout. Points you're gonna wanna know. The image padding under the label is 20 points. Labels and buttons have a height of three times the padding. Buttons have a padding of 20 points. The image height is one quarter the superview's height. There's a two to three ratio for the button's width, with the back button being bigger. And finally, we're gonna keep with that two to three aspect ratio image for the image. Okay, it's time to give it a try. Stop the video and see what you can come up with.

Contents