Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
将砌体与故事板一起使用的好方法是什么?目前我在界面生成器中添加视图,设置由 XCode 生成的随机约束,然后我将它们从 IB 的运行时中删除,并使用 Masonry 将它们添加到代码中。
只需将视图添加到故事板而不添加任何约束。通过插座将视图连接到您的代码,然后使用 Masonry 添加约束。