关于UIView的userInteractionEnabled属性

来源:互联网 发布:长虹网络电视有蓝牙吗 编辑:程序博客网 时间:2024/05/16 06:06

如果父视图为ParentView包含一个Button,如果再ParentView上添加子视图ChildView,且ChildView盖住了Button,那么Button就得到不响应了,为了让Button响应,可以设置ChildView的userInteractionEnabled = NO;最近被这个问题困扰了很久,开始想用事件传递的方法,重写类继承自UIView,最后被这简单属性搞定了....

转自:http://blog.csdn.net/studyrecord/article/details/6536358

原创粉丝点击