title: Unrecognized selector sent to instance with Swift
body: <p>I'm trying to make a slideshow app with <code>swift</code> but I have a problem,
  in <code>main.storyboard</code> I add one <code>imageview</code> and one button, when the user click on the button the slideshow will animate.</p>
  
  <p>I wrote this code at viewController.swift</p>
  
  <pre><code>@IBOutlet var ImageView: UIImageView!
  
  @IBOutlet var animateBtn: UIButton!
  
  @IBAction func animateBtnClicked(sender: UIButton) {
      startAnimation()
  }
  
  var imageList:[UIImage]=[]
  
  override func viewDidLoad() {
  
      super.viewDidLoad()
     for i in 1 ... 3{
          let imagename="\(i).jpg"
  
      imageList.append(UIImage(named: imagename)!)
      }
  
  }
  
  func startAnimation()-&gt;(){
      if !ImageView.isAnimating()
      {
      ImageView.animationImages=[imageList]
          ImageView.startAnimating()
      animateBtn.setTitle("Stop Animation", forState:UIControlState.Normal)}
      else
      {
          ImageView.stopAnimating()
      }
  
  }
  </code></pre>
  
  <p>At appdelegate.swift I didn't write any code.</p>
  
  <p>But this app was crashed when I clicked the button and show this message error</p>
  
  <pre><code>2014-12-02 09:54:55.693 #4 animation photo[921:613] -[Swift._NSSwiftArrayImpl _isResizable]: unrecognized selector sent to instance 0x7f82126615d0
  2014-12-02 09:54:55.698 #4 animation photo[921:613] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[Swift._NSSwiftArrayImpl _isResizable]: unrecognized selector sent to instance 0x7f82126615d0'
  </code></pre>