I00I
I00I

Reputation: 423

UIScrollView Indicator Bar

I was looking at the Apple docs for UIScrollView and saw that the constants for UIScrollView Indicator bars are "default", "black", and "white". I was thinking about using a scrollView without showing the indicator bar on the side of view. I have a very specific case and the bar is making it look awkward and actually seems to be distracting because of it.

If I have a black background and use a black bar I think this would hide it well. Is there a way to turn it off or move it off screen?

Has anyone done this without Apple rejecting it? Or is this a violation of the HIG in some way?

Upvotes: 0

Views: 317

Answers (2)

Joost
Joost

Reputation: 10413

UIScrollView has a couple of properties to disable the scroll indicators. Those are:

showsVerticalScrollIndicator

showsHorizontalScrollIndicator

Set them to NO, either in code or IB, to disable the indicators.

Upvotes: 0

Vladimir
Vladimir

Reputation: 170829

You can hide scrolling indicators if you want - see showsHorizontalScrollIndicator and showsVerticalScrollIndicator properties in UIScrollView. You can set them in IB as well.

Upvotes: 1

Related Questions