选择退出自动布局为单一视图? [英] Opting out of auto layout for a single view?

查看:83
本文介绍了选择退出自动布局为单一视图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有履行其在code子视图布局的视图。布局是自动布局过于复杂,和经销商的布局打破了布局code。有没有什么办法来强制自动布局独自离开这个视图的子视图?我试着重写layoutSubviews,但没有喜悦。

I have a view that performs layout of its subviews in code. The layout is too complex for auto layout, and auto layout breaks the layout code. Is there any way to force auto layout to leave this view's subviews alone? I've tried overriding layoutSubviews, but no joy.

感谢您的帮助。

推荐答案

自动布局启用或每个故事板或XIB禁用。如果你的观点是在自己的厦门国际银行,那么你可以为厦门国际银行禁用自动布局。如果在你的XIB依赖于自动布局等意见,你必须找到不同的解决方案。

Auto-layout is enabled or disabled per storyboard or XIB. If your view is in its own XIB, then you can disable auto-layout for that XIB. If there are other views in your XIB that rely on auto-layout, you'll have to find a different solution.

这篇关于选择退出自动布局为单一视图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆