views:

21

answers:

1

I have 2 views which the user can scroll between. I have page control working so I have the 2 dots at the bottom of the page which show the current page. I want to be able to disable this if the user changes a setting. I can't seem to find the code to do this? I guess it would be nice if the 2 dots remained but were greyed out, but this isn't a must!

Any tips would be great :-)

A: 

Have you tried setting the control's enabled property to NO?

myPageControl.enabled = NO;
aBitObvious
that isn't doing anything, but it does seem sensible! Any more ideas? Maybe I need to refresh it or something after that line?
Is your ui designed in IB? Make sure the IBOutlet is connected properly.
aBitObvious
Figured it out, this works... pageControl.hidden = YES; scrollView.scrollEnabled=NO; Thanks for pointing me in the right direction!