I'm trying to position an additional UIView centered above the thumb in a UISlider. To do this, I need the width of the thumb image. In iOS6, this works fine. I can use:
CGFloat thumbWidth = self.navSlider.currentThumbImage.size.width;
(As seen in this answer: How to get the center of the thumb image of UISlider)
This returns 0.0f in iOS7. I've also tried reading it using:
UIImage *thumb = [self.navSlider thumbImageForState:UIControlStateNormal];
But thumb ends up nil.
Is it possible to read the size of the default slider thumb image? Or will I have to find it, set a constant, and how Apple doesn't change it later?