title: reloadData in AppDelegate Swift
body: <p>I have a function in my AppDelegate which is similar to, DidReceiveRemoteNotification, and upon receiving a message appends a message to an array and then attempts to reload a tableview.</p>
  
  <p>My app consists of just one Viewcontroller and one AppDelegate. </p>
  
  <p>My code looks like this: </p>
  
  <pre><code>    var myCustomViewController: ViewController = ViewController(nibName: nil, bundle: nil)
  
      println("******didReceiveMessage*****")
      myCustomViewController.messages.append(message.data.message as! String)
      println(myCustomViewController.messages)
      myCustomViewController.MessageTableView.reloadData()
  </code></pre>
  
  <p>whenever I try to call a reload function my app crashes however. Is there a way to reload my tableView from my appDelegate function?</p>