BOOL isChecked;
- (IBAction)agree_Button_Clicked:(id)sender {
isChecked =!isChecked;
UIButton *check = (UIButton*)sender;
if(isChecked == NO)
[check setImage:[UIImage imageNamed:@"checkbox.png"] forState:UIControlStateNormal];
else
[check setImage:[UIImage imageNamed:@"checkbox-checked.png"] forState:UIControlStateNormal];
}
- (IBAction)agree_Button_Clicked:(id)sender {
isChecked =!isChecked;
UIButton *check = (UIButton*)sender;
if(isChecked == NO)
[check setImage:[UIImage imageNamed:@"checkbox.png"] forState:UIControlStateNormal];
else
[check setImage:[UIImage imageNamed:@"checkbox-checked.png"] forState:UIControlStateNormal];
}
Sign up here with your email
ConversionConversion EmoticonEmoticon