I have a customized UISlider that sometimes has a track image. This happens randomly, and when its parent view controller is mapped to visible (I never see it actually disappear).
Here is my code for configuring UISlider:
timeSlider = [[UISlider alloc] initWithFrame:CGRectMake(55, 8, 210, 23)]; timeSlider.backgroundColor = [UIColor clearColor]; UIImage *blutrackImg = [[UIImage alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"bluetrack" ofType:@"png"]]; UIImage *whitetrackImg = [[UIImage alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"whitetrack" ofType:@"png"]];
I built iOS 5.0. Has anyone ever encountered such a problem?
source share