将自动布局(约束)从xib / storyboard转换为代码?

时间:2017-01-12 10:08:01

标签: ios xcode autolayout constraints

我有一个带有自动布局的UIViewController的xib。但由于某种原因,我根本无法使用visual xib / storyboard文件。

是否有任何常用的方法/教程/库有助于将autolayout / constraints转换为代码?

2 个答案:

答案 0 :(得分:1)

答案 1 :(得分:0)

我发现了很多图书馆。

This is a page with short description of the most popular ones.

我使用Objective-C所以我选择了KeepLayout。如果这个项目使用了快速代码,那么最好的解决方案可能是Neon