views:

23

answers:

2

Hello All,

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?

Thanks,

I00I

+1  A: 

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

Vladimir
That is great! Thank you! I thought IB would have a property for that. I guess I should have looked there too. I checked the Apple docs, The H.I.G., and StackOverFlow before asking. The answer was in something I use all the time. That figures. Thanks again!
I00I
A: 

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.

JoostK