Xcode - how to disable pagecontrol?

iphone, uipagecontrol

Solution

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

myPageControl.enabled = NO;

Problem

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 :-)

Original source