So, lets say i have this sprite:
mbm
bcb
mbm
where each letter is a portion. (m: margin; b: border, c:center)
and I want a class that is able to repeat the b's and c as long as it needs to complete the view so i get something like this:
mbbbbbbbbbbbbbm
bcccccccccccccb
bcccccccccccccb
bcccccccccccccb
mbbbbbbbbbbbbbm
Is there something that can do this already? If it doesn't exist, any ideas on how to implement it?
Could you not achieve this with this method ?
-(UIImage *)stretchableImageWithLeftCapWidth:(NSInteger)leftCapWidth topCapHeight:(NSInteger)topCapHeight
(see Apple UIImage Class Reference )
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With