1

how to reduce the speed of ScrollView.

because of a problem with images in the TableView out of order. I want to make the Scroll slower or can also be (if possible) it stops faster

Lcstest Test
  • 113
  • 1
  • 2
  • 9
  • What problems are you having with images? If the tableview is sluggish because of images being loaded then you're better off loading those images in the background instead of forcing the tableview scrolling to slow down. – nebs Jan 20 '13 at 23:21
  • I was told this, by the way how is it? – Lcstest Test Jan 21 '13 at 01:20
  • Have a look at this question for lazy loading images: http://stackoverflow.com/questions/1130089/lazy-load-images-in-uitableview – nebs Jan 21 '13 at 15:23
  • I know .. I did a NSOperationqueue but I wanted to do so in the background (you can help?) – Lcstest Test Jan 21 '13 at 16:13
  • Read the answers to the question I posted above. Specifically have a look at this sample code: https://developer.apple.com/library/ios/#samplecode/LazyTableImages/Introduction/Intro.html – nebs Jan 21 '13 at 16:18

1 Answers1

0

AFAIK, you can't slow down the scrollviews scrolling speed. It would probably feel quite awkward too, because the user is accustomed to move the content around as he would, for example, move around a piece of paper on on a table with his finger.

What you can do however is making the scrollview decelerating quickly, which means it would not keep scrolling or would even stop immediately after the touch ends. (See decelerationRate property of UIScrollView)

Another option would be placing another view atop of your scrollview and let it intercept all touch events, so you have the opportunity to choose the ratio between finger movement and content movement according to your needs. This would be quite tedious though, since you would have to implement all the bouncing, inertia movement and - most important - telling scrolling events from other actions and pass them to the interface elements below.

Toastor
  • 8,980
  • 4
  • 50
  • 82