title: How to fill background image of an UIView
body: <p>I have an <code>UIView</code> and I set a background image in this way:</p>
  
  <pre><code>self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"sfond-appz.png"]];
  </code></pre>
  
  <p>My problem is that back-image is not centered inside the view, but it's replayed some times to fill all the view. Is there a way to center image inside uiview and scretch to have screen size? </p>
  
  <p>Note: I can't use <code>UIImageView</code> for background cause I have a <code>scrollview</code>.</p>