title: Setting a repeated background in an SKScene
body: <p>I am building an iOS game using the SpriteKit library. I have a background of stars. However, I don't want to upload a static image, because it might scale incorrectly depending on the device size. So I got a png that I repeat over to fill up the screen. I tried doing this:</p>
  
  <pre><code> self.backgroundColor = UIColor(patternImage: UIImage(named: "background.png")!);
  </code></pre>
  
  <p>However, it only sets the background to a black color. Does anyone have any suggestions on how to do this?</p>