_Bool isopen;
if (!isopen) {
[btn setBackgroundImage:[UIImage imageNamed:@"selebtndown"] forState:UIControlStateNormal];
} else {
[btn setBackgroundImage:[UIImage imageNamed:@"selebtnup"] forState:UIControlStateNormal];
}
isopen = !isopen;
网友评论