UIEdgeInsetsMake
protects the pixels at the given values.
Red marker shows the stretchable area for UIEdgeInsetsMake(8.0, 10.0, 8.0, 10.0)
(top, left, bottom, right)
Another thing is, always name your retina images properly even if you don't use the non retina versions for the older devices, like imageName@2x.png
. Otherwise it will mess up it's scale.
And call it like this without the retina suffix:
[[UIImage imageNamed:@"g21hU.png"] resizableImageWithCapInsets:UIEdgeInsetsMake(8.0, 10.0, 8.0, 10.0)]
Good luck.