show the textField in the alertController in swift
Just now I wrote the code which is provided below. I would like to produce the output for the following code but it crashes when I run it, and it shows nil . class ViewController: UIViewController ,UITableViewDataSource{ var names = [String]() @IBOutlet weak var tableView: UITableView! override func viewDidLoad() { super.viewDidLoad() title = "\"The List\"" tableView.registerClass(UITableViewCell.self, forCellReuseIdentifier: "Cell") // Do any additional setup after loading the view, typically from a nib. } @IBAction func addName(sender: AnyObject) { let alert = UIAlertController(title: "New