_muteChangeButton = [UIButton buttonWithType:(UIButtonTypeCustom)];
[_muteChangeButton addTarget:self action:@selector(muteChangeButtonAction:) forControlEvents:(UIControlEventTouchUpInside)];
[self.bgView addSubview:_muteChangeButton];
button初始化的时候改为用户自定义的就好了,不要用系统的.
网友评论