title: swift/parse: error when setting Parse data to labels
body: <p>What I am trying to do is to have data from Parse be retrieved from columns by object order. All labels are connected to their respective outlets and all of the outputs retrieve their correct data.</p>
  
  <p><a href="https://i.stack.imgur.com/7CQ5W.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7CQ5W.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/HNG2W.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HNG2W.png" alt="enter image description here"></a></p>
  
  <p>When I run it and open a cell in the tableview it crashes and gives me <strong>Thread 1: EXC_BAD_INSTRUCTION (code=EXC>I386_INVOP, subcode=0x0)</strong> on this line: <code>self.navBar.topItem?.title = output1</code> if I select the first cell, and then on this line: <code>self.navBar.topItem?.title = output1b</code> if I select the second cell.</p>
  
  <p>Here is the full function:</p>
  
  <p><code>firstObject</code> is grabbing the first object in the <code>"eventsdetail"</code> column</p>
  
  <p><code>secondObject</code> is grabbing the second object in the <code>"eventsdetail"</code> column</p>
  
  <pre><code>func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
  
      var query = PFQuery(className: "eventsdetail")
      let runkey = query.orderByAscending("ID")
      runkey.findObjectsInBackgroundWithBlock {
          (objects: [PFObject]?, error : NSError?) -&gt; Void in
  
          if error == nil {
  
              if let objects = objects as [PFObject]! {
                  for object in objects {
  
                      var firstObject = objects[0]
                      var secondObject = objects[1]
  
                      let output1 = firstObject.objectForKey("navTitle") as! String!
                      let output2 = firstObject.objectForKey("articleTitle") as! String!
                      let output3 = firstObject.objectForKey("written") as! String!
                      let output4 = firstObject.objectForKey("date") as! String!
                      let output5 = firstObject.objectForKey("article") as! String!
  
                      let output1b = secondObject.objectForKey("navTitle") as! String!
                      let output2b = secondObject.objectForKey("articleTitle") as! String!
                      let output3b = secondObject.objectForKey("written") as! String!
                      let output4b = secondObject.objectForKey("date") as! String!
                      let output5b = secondObject.objectForKey("article") as! String!
  
                      if indexPath.row == 0 {
                          self.performSegueWithIdentifier("0a", sender: nil)
                          self.tableview.deselectRowAtIndexPath(indexPath, animated: true)
                          self.navBar.topItem?.title = output1
                          self.articleTitle.text = output2
                          self.writtenBy.text = output3
                          self.date.text = output4
                          self.article.text = output5
  
                      } else if indexPath.row == 1 {
                          self.performSegueWithIdentifier("0a", sender: nil)
                          self.tableview.deselectRowAtIndexPath(indexPath, animated: true)
                          self.navBar.topItem?.title = output1b
                          self.articleTitle.text = output2b
                          self.writtenBy.text = output3b
                          self.date.text = output4b
                          self.article.text = output5b
  
                      }
  
                  }
              }
  
          }
  
      }
  
  }
  </code></pre>
  
  <p>If there is an easier way of doing this, please mention it, if not try to just solve this method's problem. I know it isn't the cleanest way of doing things.</p>