UIImage may have borders on the sides and bottom, which do not change when the image is stretched.
leftCapWidth and topCapHeight are 2 properties that need to be changed to achieve this.
Then create a UIImageView (using the image) of the required size behind your text.