参考: http://blog.csdn.net/gaoyp/article/details/17436917
UIButton* btn = [UIButton buttonWithType:UIButtonTypeCustom];
UIView* subView = [[UIView alloc] init];
subView .userInteractionEnabled = NO;
[btn addSubview:subView];
本文介绍如何创建UIButton并为其添加一个不可交互的子视图UIView,通过设置UIView的userInteractionEnabled属性为NO来实现。
参考: http://blog.csdn.net/gaoyp/article/details/17436917
UIButton* btn = [UIButton buttonWithType:UIButtonTypeCustom];
UIView* subView = [[UIView alloc] init];
subView .userInteractionEnabled = NO;
[btn addSubview:subView];

被折叠的 条评论
为什么被折叠?
