title: iOS UIView Background Image
body: <p>I want to have a <code>UIImage</code>as a background image on a <code>UIView.</code></p>
  
  <p>Here is my code:</p>
  
  <pre><code>UIColor *background = [[UIColor alloc] initWithPatternImage:[UIImage imageNamed:@"login.png"]];
  self.view.backgroundColor = background;
  [background release];
  </code></pre>
  
  <p>The Problem is, that the scale is not okay. It scaled 640 to 480, so I can't tell it 100% sure but it looks like only 300 to 250 is displayed or something like that.</p>
  
  <p>Is there a fit to scale / fit to UIView / fit to size modus?</p>