swift -> UIButton 增添子视图后addSubview 不影响点击
swift -> UIButton 添加子视图后addSubview 不影响点击
参考: http://blog.****.net/gaoyp/article/details/17436917
UIButton* btn = [UIButton buttonWithType:UIButtonTypeCustom];
UIView* subView = [[UIView alloc] init];
subView .userInteractionEnabled = NO;
[btn addSubview:subView];