/**
* 是否点击
*/
@property(nonatomic,assign)BOOL isSecected;
-(void)buttonClick:(UIButton *)sender
{
_isSecected = !_isSecected;
if (_isSecected) {
NSLog(@"选中");
}
else
{
NSLog(@"取消选中");
}
}
/**
* 是否点击
*/
@property(nonatomic,assign)BOOL isSecected;
-(void)buttonClick:(UIButton *)sender
{
_isSecected = !_isSecected;
if (_isSecected) {
NSLog(@"选中");
}
else
{
NSLog(@"取消选中");
}
}
本文标题:2020-07-24 iOS Button选中与取消
本文链接:https://www.haomeiwen.com/subject/ancslktx.html
网友评论