title: Getting data from findObjectsInBackgroundWithBlock in swift
body: <p>I am using Parse to get data out of a database. 
  When the block - findObjectsInBackgroundWithBlock is called an array gets passed. As I am only receiving one row of data, it all appears in one [0] section of the array. So how do i get all the bits out of that array ?? </p>
  
  <p>Here is some code I working with :</p>
  
  <pre><code>var MainPicture = PFQuery(className: "Staff")
          MainPicture.whereKey("Position", equalTo: "Sales Manager")
          MainPicture.findObjectsInBackgroundWithBlock ({(objects:[AnyObject]!, error: NSError!) in
              if(error == nil){
                  for object in objects {
  
                  }
                  self.getMainImageData(objects as [PFObject])
  
  
              }
              else{
                  println("Error in retrieving \(error)")
              }
  
          })
  </code></pre>
  
  <p>so where <strong>for object in objects</strong> is , it gives me one array with all the stuff in. So how can extract that array to get the First Name, Last Night, location, Staff ID out ? </p>
  
  <p>thanks </p>