UISlider Custom Thumb Shape
<p>I want to modify a bit the <code>UISlider</code>. To be exact, I want the thumb to have a <strong>custom shape</strong> (square/rectangle with rounded corners and bottom shadow).</p>

<p>The only answers that I found were something like "Create your own custom slider". But I don't know how to do that and it would take me a lot more than just trying to modify a bit the <code>UISlider</code>.</p>

<p>From my research I found that you can assign an image to the thumb.</p>

<p>So my question is the following: <strong>Is there any way of "creating" a <code>UIImage</code> with a <code>CGRect</code> so I can have any shape that I want (a square/rectangle in this case)? And of course, is and implementation with the <code>UISlider</code> even possible?</strong></p>