标签:
UIButton * btn;
[btn setImage:[UIImage imageNamed:@"a.png"] forState:UIControlStateNormal];
[btn setImage:[UIImage imageNamed:@"b.png"] forState:UIControlStateSelected];
btn.method(rmPwd:);
- (IBAction)rmbPwd:(UIButton *)sender {
sender.selected = !sender.selected;
}
标签:
原文地址:http://www.cnblogs.com/yinyakun/p/4440957.html