I need to create table cells with a very complicated background image for each: http://i.stack.imgur.com/PBL0S.png
There is a transparent circle in the center of it. And height of my cell depends from its content - it may vary. But I need this circle to always be in the center of background image and have a constant size.
My solution is: cut the image along for 2 parts and then, using the method resizableImageWithCapInsets:
create two UIImageView
's and locate them one below the other. There is the problem: this method is only availible since iOS 5, but my app needs to run under iOS 4.3. Unfortunatelly, I can't use method stretchableImageWithLeftCapWidth:topCapHeight:
because top and bottom caps on my half-images obtained with different heights.
Please, help me to create the method with the same functionality resizableImageWithCapInsets:
Or, if there is any better solution, tell it to me, please.