title: Fatal Error: Array Index out of range in Swift Xcode6
body: <p>I keep getting this error in my func</p>
  
  <p>I'm trying to read the value in array answerRecord. I uses  a global var arrayCount, which keep track which index im currently pointing to.</p>
  
  <pre><code>func buttonColourControl(){
      switch answerRecord[arrayCount]{
      case1: xxxxxxx
  </code></pre>
  
  <p>I did a println in my earlier func and it return a value of int 1 for the var arrayCount
  Therefore arrayCount is not empty. So it should be able to interpret the array as:</p>
  
  <p>*assuming arrayCount is now 1
  answerRecord[arrayCount] should be interpreted as answerRecord[1]
  Please correct me if im wrong</p>
  
  <pre><code>@IBAction func nextButtonClicked(sender: UIButton) {
      arrayCount = ++arrayCount
      question.text = spouseQuesion[arrayCount]
      controlBackNextButton()
      answer1Label.text = spouseAnswer1[arrayCount]
      answer2Label.text = spouseAnswer2[arrayCount]
      answer3Label.text = spouseAnswer3[arrayCount]
      println(arrayCount)
      buttonColourControl()
  }
  </code></pre>