I have a UIButton, with this code to set the image based on the highlighted status:
UIImage *buttonImage = imageForButton(CGSizeMake(SquarePanelSize.width, SquarePanelSize.height), NO);
UIImage *buttonHighlightedImage = imageForButton(CGSizeMake(SquarePanelSize.width, SquarePanelSize.height), YES);
[self.addButton setImage:buttonImage forState:UIControlStateNormal];
[self.addButton setImage:buttonHighlightedImage forState:UIControlStateHighlighted];
The problem is that I want it to stay highlighted when the user has their finger on it, but it goes back to normal after a second.