IOS6用xib在5.0模拟器中运行

当你用xcode4.5,iOS sdk6开发时,用xib时,在iOS 5.0 simulator中抛出异常

Terminating app due to uncaught exception ‘NSInvalidUnarchiveOperationException’, reason: ‘ Could not instantiate class named NSLayoutConstraint ‘ 

起原因在于 ios6中新增了auto layout新特性,之前的版本不支持.

去掉该属性才能在低版本上运行

你可能感兴趣的:(IOS6用xib在5.0模拟器中运行)