title: How to tile a UIImage vertically while only streching horizontally on iOS?
body: <p>I have an image that can be stretched in the horizontal direction, but need to be tiled vertically (one on top of the other) to fill my view. How could I do this?</p>
  
  <p>I know that an image can be made resizable by using the <code>-(UIImage *)resizableImageWithCapInsets:(UIEdgeInsets)capInsets</code> method. So that works great for the horizontal direction but that method cannot be used for the vertical direction it really needs to be tiled, and not stretched in the vertical direction to work.</p>
  
  <p>Now my idea of how this could work is to run a loop that creates a UIImageView with the horizontally stretched image, and simply adjust the frame.origin.y property, then add it as a subview each loop until I've gone past the height of the view. However this seems like an overly complex way of doing this and really not practical when the view need to be resized (on an iPad rotation for example)</p>
  
  <p>Is there a simpler more efficient way of doing this on iOS 6.x?</p>