Currently I have a small segmented control with 3 separate segments.
What I want to do is, if selected, change the image of that specific segment to a different image.
So far I've managed to make it very similar to what I want, and a new image is displaying when selected, but a small part of the new image is covered by a blue highlight (shown below), and no matter what I try, I can't get rid of it:
For some reason the highlighting is overriding part of the image.
I'd like to know how to completely disable any highlighting/change of a segmented control when selected, or any other option which would achieve my question.
What I've tried so far:
My code (just testing out one image for any selected button as you can see):
-(IBAction)languageChanged:(UISegmentedControl *)sender {
UISegmentedControl *segmentControl = [[UISegmentedControl alloc] init];
[segmentControl addTarget:self action:@selector(segmentedControlValueChanged:) forControlEvents:UIControlEventValueChanged];
[self.view addSubview:segmentControl];
[sender setImage:[UIImage imageNamed:@"rsz_langue-francais-on.png"] forSegmentAtIndex:sender.selectedSegmentIndex];
}