I have an app which I have been developing for ios 6.1 and I finally got it to work as I wanted to.
Then just to test how it works on the older iPhones, I set the deployment target to 5.1 and when I ran it, the ui started looking messed up.
Would anyone know why this happens? And should I keep the deployment target to 6.1? And if so, how do I make sure that the app looks ok on the older versions of the iPhones?
ps – here is the crash when I check the auto layout option
*** Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named NSLayoutConstraint'
*** First throw call stack:
Autolayouts were introduced in iOS6.0
If you want your app to run on iOS5.x or 4.x you must disable or not use autolayouts, or version gate the use of autolayouts based on which iOS the device is running (which, is a pain).
The Deployment Target is the oldest iOS version you want your app to run on. if its iOS5.0, then it’ll run on all devices having iOS5.0 or later
Here’s a better answer