Image 1

Image 2

Image 3

- The 1st image is the settings screen, and everything behaves normally when you first load this screen.
- The second image is a policy screen that is popped from the settings screen.
- The third image after returning from the policy screen back to the settings screen shows that the user interface of the slider now does not show the image of the track. The behavior is still working fine, but the track has just disappeared. This is a very mysterious mistake for me. If I switch to another screen in the application and then delete the settings, it works fine again, but when I exit the policy screen, the image of the track will disappear.
I use UISlider by default. I use xib files for different screens.
""...
EditorialPolicyViewController *policyView;
if ([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPad)
{
policyView = [[EditorialPolicyViewController alloc]initWithNibName:@"EditorialPolicyViewController_iPad" bundle:nil];
}
else
{
policyView = [[EditorialPolicyViewController alloc]initWithNibName:@"EditorialPolicyViewController_iPhone" bundle:nil];
}
[self.navigationController pushViewController:policyView animated:YES];
ViewDidLoad - uislider
NSString *textSize = [[NSUserDefaults standardUserDefaults] valueForKey:@"Text Size"];
float textSizeFloat = [textSize floatValue];
self.textSizeSlider.value = textSizeFloat;
[self.textSizeSlider setMaximumValue:16.0];
[self.textSizeSlider setMinimumValue:11.0];
, . , .
UPDATE
, "" , , . ?
[[UISlider appearance] setThumbTintColor:[UIColor colorWithRed:0/255.0f green:75/255.0f blue:152/255.0f alpha:1.0f]];
[[UISlider appearance] setMinimumTrackTintColor:[UIColor colorWithRed:164/255.0f green:75.0f blue:25/255.0f alpha:1.0f]];
[[UISlider appearance] setMaximumTrackTintColor:[UIColor colorWithRed:204/255.0f green:204/255.0f blue:204/255.0f alpha:1.0f]];