Open Source: Library Allowing For Automatic Synchronization Between Portrait And Landscape Views

It doesn’t take too long after beginning iOS development to realize some of the difficulties that occur when adjusting the user interface to accommodate changes in the devices orientation. If you have multiple elements in your view then chances are you will need to make two different layouts.

This probably means you are going to have to synchronize things across both the portrait and landscape view to keep the experience seamless if the user changes orientation.

I’ve found an excellent open source project that aims to provide that same seamless experience by using the landscape and portrait views created by you as a template, and automatically applying the layout information when the view changes. The end result being that you do not have the extra work and overhead of trying to synchronize the two views somewhere within your app.

You can find the project from Michael Tyson on Github here:
https://github.com/michaeltyson/TPMultiLayoutViewController

An absolutely brilliant idea that can definitely save a lot of time.

In case you missed it, I previously mentioned Michael’s excellent library that provides a drop-in UITextField or UITextView replacement that moves out of the way automatically when the keyboard pops up.

©2011 iPhone, iOS 4, iPad SDK Development Tutorial and Programming Tips. All Rights Reserved.

.

DeliciousTwitterTechnoratiFacebookLinkedInEmail


Leave a Reply

Your email address will not be published. Required fields are marked *