2020-07-24 iOS Button选中与取消
2020-07-24 本文已影响0人
缘來諟夢
/**
* 是否点击
*/
@property(nonatomic,assign)BOOL isSecected;
-(void)buttonClick:(UIButton *)sender
{
_isSecected = !_isSecected;
if (_isSecected) {
NSLog(@"选中");
}
else
{
NSLog(@"取消选中");
}
}