Opting out of auto layout for a single view?

前端 未结 3 1754
遇见更好的自我
遇见更好的自我 2021-02-19 06:37

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 l

3条回答
  •  花落未央
    2021-02-19 07:04

    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.

提交回复
热议问题