背景需求
isSelected
状态。实现
[_lineButton addTarget:self action:@selector(changeStatus:) forControlEvents:UIControlEventTouchUpInside];
[self.functionView.lineButton addTarget:self action:@selector(linespacePlus) forControlEvents:UIControlEventTouchUpInside];
执行结果