【问题标题】:Convert auto-layout (constraints) from xib/storyboard to code? [closed]将自动布局(约束)从 xib/storyboard 转换为代码? [关闭]
【发布时间】:2017-01-12 10:08:01
【问题描述】:

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

是否有任何通用方法/教程/库有助于将自动布局/约束转换为代码?

【问题讨论】:

标签: ios xcode autolayout constraints


【解决方案1】:
【解决方案2】:

我发现了很多图书馆。

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

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

【讨论】:

    猜你喜欢
    • 2017-03-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-08-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多