开发者

Xcode - how to disable pagecontrol?

开发者 https://www.devze.com 2023-01-21 13:12 出处:网络
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

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
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号