拖动时UIScrollView不允许向下移动

时间:2016-04-20 04:01:17

标签: ios uiscrollview pull-to-refresh

当我向下拖动scrollView时,我希望我的scrollView不向下移动,换句话说,当我拉动刷新scrollVIew内容时,我不希望更改contentOffset,我该怎么做?

1 个答案:

答案 0 :(得分:0)

我认为您不想bounce ScrollView ...只需取消选择属性Bounce,如下所示Show the Attributes Inspector

enter image description here

或者你可以这样做Programmatically

ScrollObj.bounces = NO;