Could not instantiate class named NSLayoutConstraint

来源:互联网 发布:河南打车软件 编辑:程序博客网 时间:2024/04/30 20:07

xcode 升级到了 4.5 之后 只要往xib上面拖放控件 就会报错,

解决方法, 选中当前的 xib文件,在属性栏里面进行以下操作:

再右边的 inspector 一栏 将 interface builder document 下的 use autolayout 复选框去掉就可以了

原创粉丝点击