Root View Controller Swift
问题 I have a function in my app delegate which appends an item to an array in my a file named ViewController.swift, and then I want to reload a tableview in that same file. I attempt to do so like so: let vc = ViewController() let navigationController = UINavigationController(rootViewController: vc) window!.rootViewController = navigationController println(vc.messages) //1 vc.messages.append(message.data.message as! String) //2 vc.MessageTableView?.reloadData() The lines numbered 1,2 are where I