1.在用XCode 4.5创建的xib文件,都会带有Constraints文件,如下图所示:
2.要想去掉这个的话,只需要在view的属性面板中,如下图所示的中的"Use Autolayout" 勾选去掉
(在右边的第一个页签:Show the File inspector)
3.如果不去掉的话,在低版本的iPhone设备上运行的时候会出现崩溃:
出现的异常是:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'The NIB data is invalid.'