ios - 有谁知道如何让 UIScrollView 中带有信息的标签位于框的顶部而不是中间?

标签 ios iphone swift3

我无法让标签中的文本出现在顶部,并且出于某种原因,我的 UIScrollView 不会一直走到最后一点(即 10)。它在 7 点停止。我添加了一些图像来解释我的意思。

Currently the text is in the middle, but want it at the top of the label not in the middle

Lots of space between Terms and Conditions and the text

I can only scroll to half of point 7 and view that, but there are 10 points

enter image description here

最佳答案

这不应该是 标签。它应该是一个不可编辑的 TextView (UITextView)。那么这个问题就不会出现了。

实际上,不可编辑的 TextView 可滚动的标签!

关于ios - 有谁知道如何让 UIScrollView 中带有信息的标签位于框的顶部而不是中间?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40749037/

相关文章:

ios - 带 NSAttributedString 的首字下沉

iphone - 当我切换到仅 alpha (A8) 像素格式时,为什么我的片段着色器无法读取 alpha 信息?

iphone - 为什么保留 NSURLConnection 和 CAAnimation 委托(delegate)?

ios - 使用 2 个不同的对象创建 UITableView

ios - UIImagePicker 始终以横向模式打开照片应用程序

ios - Swift:UIAlertController 从列表中选择子集

ios - 在关闭 View 之前显示 UIAlert

swift - PageViewController透明或没有背景

objective-c - iOS 将 UIView 平行于 X-Z 平面对齐

ios - tableview 数据无法在 swift 中正确显示