title: Set background Image for a Custom UIView
body: <p>I am developing a paint application using OpenGL. </p>
  
  <p>I am using "CUSTOM UIView" for drawing on a screen and another UIImageView to set background image to it. Have a look at screenshot to understand it clearly.. My problem is I am not able to set background image on either of the view.. I have to use different textures as a drawing board on which I have to Paint. Can anyone suggest what is incorrect in this approach??</p>
  
  <p><a href="https://i.stack.imgur.com/Z66oU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Z66oU.png" alt="Imagelink"></a>
  </p>
  
  <p>I have used this code for custom UIView but not getting success.. but it shows white default  background only.. </p>
  
  <pre><code>- (id)initWithCoder:(NSCoder*)coder {
      UIColor *background = [[UIColor alloc] initWithPatternImage:[UIImage imageNamed:@"Rough_White_Paper_with_tape.png"]];
      self.backgroundColor = background;
      [background release];     
  }
  </code></pre>