Get Updates By E-mail 

Article Written By:
Johann Dowa

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.


  •  
  •  
  •  
  •  
  •  

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.

Comments