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.
我在滚动视图中有 160 个控件(UITextField、UILabel、UIImageVIew)的 xib。这个控件是放顺序的。现在我想要的是在滚动视图中在这 160 个控件运行时之上添加更多控件。我怎样才能做到这一点 ?? 我试图这样做在滚动视图中添加 1 个 UIView 并在其中添加动态控件,并在滚动视图中的其他 UIview 中添加 160 个控件。但问题是当我要在 UIview 中添加这 160 个控件时,帧大小会受到干扰。那么还有其他解决方案吗?请让我知道..提前谢谢
将属性更改为scrollView.contentSize您想要的大小
scrollView.contentSize