title: Load all data from parse before displaying table
body: <p>I'm currently trying to populate a tableView with information stored on my Parse server (username, description, profile picture) </p>
  
  <p>Currently... When I open the tableview I do not get any information showing, but if I click back and re open the table, all of my information shows and I'm unsure why that is. </p>
  
  <p>A first get all information needed from Parse and store them into arrays like so: </p>
  
  <pre><code>let query = PFQuery(className: institutionTitle)
      query.findObjectsInBackground {
          (objects, error) in
          if error == nil {
              // The find succeeded.
              // Do something with the found objects
              if let objects = objects {
                  for object in objects {
                      self.postGrabber.append(object)
                      self.pSenderUsername.append(object["sender"] as! String)
                      self.pPostBody.append(object["textPost"] as! String)
                  }
              }
          } else {
              // Log details of the failure
              print("Error: \(error!)")
          }
      }
  </code></pre>
  
  <p>I'm currently using both the <code>viewDidLoad()</code> and <code>viewWillAppear()</code> to <code>reloadData()</code></p>
  
  <p>I then set the delegate and datasource of the table view in the <code>viewDidLoad()</code> function. </p>
  
  <p>I then use the cellForRowAtIndexPath method to set up each cell on the table: </p>
  
  <pre><code>func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {
      let cell: UniversityFeedCellTableViewCell = tableView.dequeueReusableCell(withIdentifier: "postCell", for: indexPath) as! UniversityFeedCellTableViewCell
  
      cell.sender.text = pSenderUsername[indexPath.section]
      cell.senderPost.text = pPostBody[indexPath.section]
      cell.profilePicture.layer.cornerRadius = cell.profilePicture.frame.size.width / 2
      cell.profilePicture.layer.borderColor = UIColor.orange.cgColor
      cell.backgroundColor = UIColor.white
  
      return cell
  }
  </code></pre>
  
  <p>I'm looking for some information on how I would make the user wait until all data has successfully loaded and has been populated. Would appreciate some help. </p>
  
  <p>Thanks in advance and feel free to request more information from myself. </p>