Container view with dynamic height inside UIScrollView with auto layout

前端 未结 3 1485
灰色年华
灰色年华 2021-02-02 15:03

I have a UIScrollView, nested inside of which in one content view and it has two child views nested, a regular UIView with a known height, and a container view with dynamic heig

3条回答
  •  走了就别回头了
    2021-02-02 15:39

    In your case if you want to get rid of the IB warnings about the Container height should be zero. you can put a height constraint with whatever constant value suitable for you and check it as a placeholder (it will be removed at build time.)

提交回复
热议问题