I have 3 images, a left cap, right cap, and center. Perhaps using CGImageRefs (?), is there a way to build a bitmap based on a CGRect that would center the center piece in some container, stretch the left cap until it reaches the center piece and the same for the right then produce a UIImage?
I have 3 images, a left cap, right cap, and center. Perhaps using CGImageRefs
Share
Ok I looked it up as promised. Here is a solution:
The Basic Idea
UIImagewith stretched right sideUIImageAnd here is a small graphic how i think it could word
The code
The alternative
Inspired by Jonathan Plaketts answers the same should ne possible with just
UIImageViewsand stretching the UIImages as above.