I want to use custom background image for UISegmentedControl like "Find My Friends". Here's how their resizable images look like:
source http://feedzr.com/source.png source http://feedzr.com/inwork.png
How do I create that complex shadow effect in Core Graphics?
EDIT
The bottom image is just how the above looks like when working with a leather background in a real UISegmentedControl.There're lot's of effects in the resizable image like: bottom gloss, top inner shadow and partial gradient from top to bottom.
I just can't see how & what effects are being used in this image. I'm not asking how to use UIEdgeInsets.