title: Parse not returning a list of usernames
body: <p>I cannot for some reason get the username i typed to display in my tableview. Any ideas? I triple checked the name of my cell, the name of class on parse and the name of the column. Maybe i forgot something? </p>
  
  <pre><code>import UIKit
  
  import Parse
  
  
  
  
  class AddFriendViewController: UIViewController, UITableViewDataSource,    UITableViewDelegate, UISearchBarDelegate {
  
  @IBOutlet var myFriendSearchBar: UISearchBar!
  @IBOutlet var myFriendSearchList: UITableView!
  
  
  var searchResult = [String]()
  
  override func viewDidLoad() {
      super.viewDidLoad()
  
      self.navigationController?.navigationBar.barTintColor = UIColor.blackColor()
      self.navigationController?.navigationBar.tintColor = UIColor.whiteColor()
      self.navigationController?.navigationBar.titleTextAttributes = [ NSFontAttributeName: UIFont(name: "Nexa Rust Script L", size: 25)!,  NSForegroundColorAttributeName: UIColor.whiteColor()]
      self.myFriendSearchBar.delegate = self
  
  
      self.navigationItem.title = "Haffla"
      navigationController?.setNavigationBarHidden(false, animated: true)
  
      // Do any additional setup after loading the view.
  }
  
  override func didReceiveMemoryWarning() {
      super.didReceiveMemoryWarning()
      // Dispose of any resources that can be recreated.
  }
  
  
   func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int
   {
      return searchResult.count
  }
  
  
  
  func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -&gt; UITableViewCell {
  
      let myCell = tableView.dequeueReusableCellWithIdentifier("myCell", forIndexPath: indexPath) as UITableViewCell
  
      myCell.textLabel?.text = searchResult[indexPath.row]
  
      return myCell
  
  }
  func searchBarSearchButtonClicked(searchBar: UISearchBar) {
      myFriendSearchBar.resignFirstResponder()
  
      let userName = PFQuery(className: "User")
      userName.whereKey("username", containsString: searchBar.text)
      let query = PFQuery.orQueryWithSubqueries([userName])
  
  
      query.findObjectsInBackgroundWithBlock { (objects:[PFObject]?, error: NSError?) -&gt; Void in
  
  
          if error != nil {
  
              let myAlert = UIAlertController(title: "Error", message: error?.localizedDescription, preferredStyle: UIAlertControllerStyle.Alert)
  
  
              let okAction = UIAlertAction(title: "Ok", style: UIAlertActionStyle.Default, handler: nil)
  
  
              myAlert.addAction(okAction)
  
              self.presentViewController(myAlert, animated: true, completion: nil)
  
              return
          }
          if let friends = objects as [PFObject]? {
              self.searchResult.removeAll(keepCapacity: false)
  
              for object in friends {
  
  
                  let username = object.objectForKey("username") as! String
                  self.searchResult.append(username)
  
  
              }
              dispatch_async(dispatch_get_main_queue()) {
                  self.myFriendSearchList.reloadData()
                  self.myFriendSearchBar.resignFirstResponder()
              }
  
          }
  
  
  
      }
  
  }
  
  
  
  
  
  
  func searchBarCancelButtonClicked(searchBar: UISearchBar) {
      myFriendSearchBar.resignFirstResponder()
      myFriendSearchBar.text? = ""
  }
  
  
  
  }
  </code></pre>
  
  <p>i got this error:<strong>Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has been rendered at least once before snapshotting or snapshot after screen updates.</strong></p>