简体   繁体   English

在故事板中选中“使用自动布局”是否会转换所有自动调整大小的蒙版?

[英]Does checking "Use Auto Layout" in a storyboard convert all of the autoresizing masks?

Currently working on an iPhone app in Xcode 7.3, with some views using autoresizing masks.目前正在 Xcode 7.3 中开发 iPhone 应用程序,其中一些视图使用自动调整大小蒙版。 Does checking "Use Auto Layout" in a storyboard convert all of those masks without any repercussions?在情节提要中检查“使用自动布局”是否会转换所有这些蒙版而不会产生任何影响? I want to make sure this automatic conversion doesn't break anything.我想确保这种自动转换不会破坏任何东西。

Just checked, on my app, it breaks a lot of things.刚刚检查,在我的应用程序上,它破坏了很多东西。

But just in case you want to experiment and your project is under source control via git, you can try this change and then go to the menu Source Control -> Discard changes in your.storyboard to revert the change但是,如果您想进行试验并且您的项目通过 git 进行源代码控制,您可以尝试此更改,然后转到菜单Source Control -> Discard changes in your.storyboard以还原更改

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM