Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

layout

Hi guys, I would like help with arranging my page depending on whether the user has added an image or not. Basically i currently have a UITextView and above that I have a view spanning the width of the page and around 50px high that contains a label with the date on. However, when a user adds an image to the page, a small view containing the selected image will appear and the UITextView will move down in order to fit the new view in. I understand auto layout would be useful in this instance, but i have no idea how to use it. Any help is greatly appreciated! Kieran

1 Answer

if you have a Treehouse pro subscription you can check out the AutoLayout workshop. if not the Using Auto Layout and Managing the keyboard section of the Implementing Designs for Iphone course will introduce you to using auto layout.