2

I'm working with Xcode developing for iOS using a UIScrollView. I got the scrollview working just fine.

But my issue/question is dealing with how to use the scrollbar on the side of the scrollview:

For example, I have dynamically created 2000 buttons inside the scrollview, in the simulator. The buttons are lined up vertically, so I have to scroll down to see all of the buttons. I do not want to simulate scrolling 30 to 40 times in order to get to the 1500th button.

I have the code to go to the last button, and to scroll to top. But I was wondering if there is anyone that can give insights on whether I can use the scroll bar on the side of that scrollview in order to help me navigate the scrolling better.

enter image description here

Donal Fellows
  • 133,037
  • 18
  • 149
  • 215
If Pollavith
  • 228
  • 2
  • 5
  • This is not a scroll bar, it is a scroll indicator. It is just like a scroll bar, but in a sense it is "read-only": end users can see it, but they cannot drag it, like they do on desktops. – Sergey Kalinichenko Aug 04 '12 at 03:05

1 Answers1

1

That bad boy isn't a scroll bar. It's simply a visual indicator of the current location. There are ways to scroll programmatically, but I'm not sure that's really what you want to do.

Community
  • 1
  • 1
GarlicFries
  • 8,095
  • 5
  • 36
  • 53