How to tile the contents of a CALayer?
        Posted  
        
            by iaefai
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by iaefai
        
        
        
        Published on 2010-03-26T03:23:07Z
        Indexed on 
            2010/03/26
            3:53 UTC
        
        
        Read the original article
        Hit count: 475
        
I would like to tile a CGImage across a CALayer, but it seems to only want to stretch it.
The example code:
 self.background = [UIImage imageNamed: @"Background.png"];
 [documentDisplay.layer setContents: self.background.CGImage];
I would like to avoid subclassing if I could.
© Stack Overflow or respective owner