set the image in the selected state:
[button setImage:[UIImage imageNamed:@"btn_graphics"] forState:UIControlStateSelected];
and then touch the internal selector, set:
button.selected = YES;
if you want this to deselect another button, set:
otherButton.selected = NO;
nurxyz Apr 05 2018-12-12T00: 00Z
source share