check mark clicked

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];
}
Previous
Next Post »