float x = [self xPositionFromSliderValue:self.navigationSlider]; UILabel* label=[[UILabel alloc]initWithFrame:CGRectMake(x, 42, 30, 20)]; [label setBackgroundColor:[UIColor colorWithRed:0.494 green:0 blue:0.835 alpha:1]]; [label setText:_playTimer.text]; [label setTextColor:[UIColor whiteColor]]; [label setText:_playTimer.text]; [label setFont:[UIFont fontWithName:@"HelveticaNeue-Thin" size:12]]; [self.navigationSlider addSubview:label];
This is how I move the Label, it leaves a trail behind it. How to remove it?