假设你有一个UIbutton.您将“隐藏”属性设置为“是”.这使得它不再可见,对吧?但是我注意到,它不再可见,它也不再是可点击.那么这是否意味着设置hIDden = YES也设置enabled = NO?
只是好奇.谢谢你们
解决方法 UIbutton和所有控件从UIVIEw继承常见的属性,如hIDden,backgroundcolor等.UIVIEw的类引用说如果任何视图被隐藏,那么它将不会接收输入事件
UIVIEw的类参考说:
A hIDden vIEw disappears from its window and does not receive input
events. It remains in its supervIEw’s List of subvIEws,however,and
participates in autoresizing as usual. HIDing a vIEw with subvIEws has
the effect of hIDing those subvIEws and any vIEw descendants they
might have. This effect is implicit and does not alter the hIDden
state of the receiver’s descendants.
你可以在Here以上找到.
总结以上是内存溢出为你收集整理的ios uibutton隐藏:这是否自动使按钮禁用?全部内容,希望文章能够帮你解决ios uibutton隐藏:这是否自动使按钮禁用?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)