Xcode - 如何禁用页面控制?
我有两个视图,用户可以在它们之间滚动。我有页面控制功能,因此页面底部有两个点显示当前页面。如果用户更改设置,我希望能够禁用此功能。我似乎找不到执行此操作的代码?我想如果这两个点保留但变灰就好了,但这不是必须的!
任何提示都会很棒:-)
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 :-)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否尝试过将控件的启用属性设置为“否”?
Have you tried setting the control's enabled property to NO?
斯威夫特 4、斯威夫特 5
Swift 4, Swift 5