title: Trying to delay images placed on UIButtons
body: <p>I am trying to deal a hand of 5 cards, one at a time, with a slight delay between the deal of each card. The card's are UIButtons and I am changing the button image to that of a card.  My code is below.  I've tried solutions with NSTimer also but get the same results.  The problem is that no matter what the delay time interval is, the delay occurs but then all the cards appear at once.  Any help would be appreciated. Thank you.</p>
  
  <pre><code>    var index = 0
      for card in [card1, card2, card3, card4, card5] {
          if canBeDealt(card)  {
              let oneCard = myDeck.deal1()
              pokerHand[index] = oneCard
              let cardPic = UIImage(named: "PNGCards/" + oneCard + ".png")!
              dispatch_after(dispatch_time(DISPATCH_TIME_NOW, Int64(0.5 * Double(NSEC_PER_SEC))), dispatch_get_main_queue()) {
                  card.setBackgroundImage(cardPic, forState: .Normal)
                  card.setTitle("", forState: .Normal)
              }
          }
          index += 1
      }
  </code></pre>