You can not use autolayout
below iOS 6.0. The exception you are seeing is a result of this. NSLayoutConstraint
is the class used to define interface element relationships when using autolayout
.
To continue to target versions below iOS 6.0, simply uncheck "Use Autolayout" in the IB interface.