Prior to auto layout setting up UIScrollView required you to pass in the dimensions of your content within the UIScrollView was an issue especially if you different UI elements, the orientation changed, or you needed to adjust for different device sizes.
Here’s a tutorial by Mike Woelmer of Atomic Object that demonstrates how to set up a UIScrollView using auto layout that adjusts to orientation changes, and moves your content out of the way of the keyboard.
The tutorial goes through the process of setting things up in interface builder, changing constraints to support the different orientations, and getting signlas from the keyboard so you know when to move the content out of the way.
You can find the tutorial over on the Atomic Object blog.
The example project can be found on Github here.
A nice tutorial on how to easily solve a common issue.
Thanks to Atomic Object for the submission.
Submit A Resource
Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?
You can submit the url here.
The resources we feel will appeal to our readers the most will be posted on the front page.