如果使用Xcode 4.5来新建项目,默认是支持AutoLayout的,但是AutoLayout是iOS 6的新特性,如果在iOS 5的simulator上运行程序,会出现Could not instantiate class named NSLayoutConstraint问题。解决方法是打开storyboard文件,去掉AutoLayout的选择。

rob mayoff的神图一目了然。

iOS 5解决Could not instantiate class named NSLayoutConstraint问题

相关文章:

  • 2021-09-08
  • 2022-12-23
  • 2021-10-26
  • 2021-05-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-17
  • 2022-02-13
  • 2022-12-23
  • 2021-04-18
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案