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.
伙计们!所以,我有 UIScrollView 和几个 UILabels,我想调整 UIScrollView 的大小,使其高度适合所有标签高度的总和。你能帮助我吗?
对标签的高度求和,添加一些填充并将其设置为滚动视图框架(或 contentView,如果大于屏幕)的高度。