/**
* 是否点击
*/
@property (nonatomic ,assign) BOOL selected;
/**
* button 点击事件选中取消选中
*/
- (void)handleButtonPress:(id)sender {
NSLog(@"%d",_selected);
_selected = !_selected;
if(_selected) {
NSLog(@"选中");
}else {
NSLog(@"取消选中");
}
}
/**
* 是否点击
*/
@property (nonatomic ,assign) BOOL selected;
/**
* button 点击事件选中取消选中
*/
- (void)handleButtonPress:(id)sender {
NSLog(@"%d",_selected);
_selected = !_selected;
if(_selected) {
NSLog(@"选中");
}else {
NSLog(@"取消选中");
}
}