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.
- Library Making iOS 6 Auto-Layout Extremely Easy To Use Programmatically
- Open Source Library For Bringing The iOS 6 Auto Layout API To iOS 5
- Handy iOS UIScrollview Category Adding Zoom Gesture Support And More
- Handy UIView Category Providing Layout Helper Methods (Z-Ordering, Absolute Positioning And More)
- Open Source Library For Easily Creating Complex Auto Layout Layouts From Code
Original article: Tutorial: How To Easily Set Up Scrolling Content Within A UIScrollView Using Auto-Layout
©2014 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.




