Skip to content
redmar edited this page Aug 12, 2010 · 3 revisions

Using image backgrounds with your own CPControl based components

3 part background images can be created in your component in the following way:


[CPColor colorWithPatternImage: img];

where the image is defined with:

img = [[CPThreePartImage alloc] initWithImageSlices:[leftImage, centerImage, rightImage]                                                                           
                     isVertical:NO];