So, I have a UISlider that I configure with some images:
UIImage *stetchLeftTrack = [[UIImage imageNamed:@"slider_blue.png"] stretchableImageWithLeftCapWidth:9.0 topCapHeight:0.0]; UIImage *stetchRightTrack = [[UIImage imageNamed:@"slider_white.png"] stretchableImageWithLeftCapWidth:9.0 topCapHeight:0.0]; [volumeSlider setThumbImage: [UIImage imageNamed:@"slider_blob.png"] forState:UIControlStateNormal]; [volumeSlider setMinimumTrackImage:stetchLeftTrack forState:UIControlStateNormal]; [volumeSlider setMaximumTrackImage:stetchRightTrack forState:UIControlStateNormal];
I'm actually just trying to copy the volume controls, as shown in the iPod app (which AFAIK you can't do in code). Since I use high-resolution images, it attracts an entire huge application, for example: 
Actually desired effect: 
If I reduce the actual images, I will lose quality and it looks garbage and blurry! So I'm looking to do this in code, but a little lost ...
source share