title: Swift - change image of UIImageView dynamically
body: <p>I have a normal <code>UIImage</code> and a <code>list</code> of images. My goal is that every few seconds the image changes automatically with some sort of never ending loop through my <code>imageList</code>. </p>
  
  <p>This is my list: </p>
  
  <pre><code>let images: [UIImage] = [
          UIImage(named: "avocadoImage")!,
          UIImage(named: "beerImage")!,
          UIImage(named: "bikeImage")!,
          UIImage(named: "christmasImage")!,
          UIImage(named: "dressImage")!,
          UIImage(named: "giftImage")!,
          UIImage(named: "goalImage")!,
          UIImage(named: "rollerImage")!,
          UIImage(named: "shirtImage")!,
          UIImage(named: "shoeImage")!,
          UIImage(named: "travelImage")!,     
      ]
  </code></pre>
  
  <p>I tried this: </p>
  
  <pre><code> NSTimer(timeInterval: 0.5, target: self, selector: "ChangeImage", userInfo: nil, repeats: true)
  </code></pre>
  
  <p>But I don't know how I can loop through my array over and over again.</p>