title: Storing array from Parse into local array
body: <p>When I try to store arrays from Parse into a local array I can only access it within the <code>findObjectsInBackgroundWithBlock {...}</code>. When I print it outside of that block, it shows <code>[]</code>...</p>
  
  <p>Code :</p>
  
  <pre><code>var qArray : [[Int]] = []
  
  override func viewDidLoad() {
      super.viewDidLoad()
  
      let query = PFQuery(className: "Trivia")
      query.findObjectsInBackgroundWithBlock {
          (objects: [PFObject]?, error: NSError?) in
          if objects != nil {
              if let objects = objects {
                  for object in objects {
                      self.qArray.append(object["mainPattern"] as! [Int])
                  }
                  print(self.qArray) // Prints a multi dimension array
              }
          }
          if error != nil {
              print(error)
          }
      }
      print(self.qArray) // prints []
  }
  </code></pre>