uiscrollview的控件使用autolayout时要加一个contentview ,0 leading, trailing, top, and bottom spaces to the Scroll View
所有的子控件加到contentview中,xy上都多加一个约束控制总长度和高度
本文介绍在使用UIScrollView时如何通过Autolayout进行布局的方法。为确保正确的布局效果,需在UIScrollView内部添加一个ContentView,并设置适当的约束条件。所有子控件应当添加到ContentView中,并通过额外的约束来控制其长度和高度。
uiscrollview的控件使用autolayout时要加一个contentview ,0 leading, trailing, top, and bottom spaces to the Scroll View
所有的子控件加到contentview中,xy上都多加一个约束控制总长度和高度

被折叠的 条评论
为什么被折叠?