Xcode - how to disable pagecontrol?
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 :-)
Have you tried setting the control's enabled property to NO?
myPageControl.enabled = NO;
Swift 4, Swift 5
pageControl.isEnabled = false
精彩评论