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。有时我可能只想让用户看到三分之一的视图,因此我希望它只显示滚动视图的这一部分,但在视图的两端仍然有这种很好的“弹跳”效果来“预览”什么位于可滚动区域之外。
有没有办法做到这一点?
我认为您应该指定 UIScrollView 的大小以结束您希望用户滚动到的位置,但保留 UIScrollView 的内部视图(子视图)的大小。