Ever since I’ve updated my XCode, the MinimumTrackImage on my UISlider is now stretching, when before it was clipping like I wanted it to. The MaximumTrackImage‘s behavior didn’t change.
How can I get the MinimumTrackImage to not stretch? Note that I use rubymotion, but a solution using obj-c is also acceptable.
I’m guessing here (you are allowed to guess on StackOverflow as long as you’re honest about it)… There is a new iOS6 feature for images and perhaps that is getting in your way here. You can set the
resizingModeandcapInsetsfor an image. Try this:If you need to adjust the insets as well, replace
UIEdgeInsetsZerowithUIEdgeInsetsMake(top, left, bottom, right)wheretop,left,bottom, andrightarefloats. In RubyMotion, I believe you can just use[top, left, bottom, right].Info came from here:
http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIImage_Class/Reference/Reference.html