【发布时间】:2009-10-05 15:56:01
【问题描述】:
我正在使用 UIScrollerView,我发现当我滚动它时它倾向于“快速”回到之前的位置。
我想模拟 UItableView 的滚动条停留在用户松开手指的位置时的行为。
属性集:
[scroller setCanCancelContentTouches:NO];
scroller.clipsToBounds = YES;
[scroller setScrollEnabled:YES];
scroller.userInteractionEnabled = YES;
scroller.alwaysBounceHorizontal = YES;
scroller.alwaysBounceVertical= NO;
scroller.showsVerticalScrollIndicator = NO;
scroller.scrollsToTop = NO;
scroller.bounces = NO;
scroller.pagingEnabled = NO;
【问题讨论】:
标签: iphone uiscrollview