Swift: Terminating with uncaught exception of type NSException after add array data to table <p>After adapt data array to table, i get this error : libc++abi.dylib: terminating with uncaught exception of type NSException (lldb) <a href="https://i.stack.imgur.com/zGJkF.png" rel="nofollow"><img src="https://i.stack.imgur.com/zGJkF.png" alt="enter image description here"></a> I read this question but it seem not be my answer. <a href="http://stackoverflow.com/questions/30657629/swift-terminating-with-uncaught-exception-of-type-nsexception">Swift: Terminating with uncaught exception of type NSException</a></p> <p>My storyboard like this: <a href="https://i.stack.imgur.com/sp9I8.png" rel="nofollow"><img src="https://i.stack.imgur.com/sp9I8.png" alt="enter image description here"></a></p> <p>And this is my code of tableview :</p> <pre><code>class MenuTableViewController: UITableViewController { var menuList = ["Row1", "Row2", "Row3", "Row4"] override func numberOfSections(in tableView: UITableView) -&gt; Int { return 1 } override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int { return menuList.count } override func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) { cell.backgroundColor = UIColor.clear } override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell { let cell = tableView.dequeueReusableCell(withIdentifier: "LabelCell", for: indexPath) cell.textLabel?.text = menuList[indexPath.row] return cell } </code></pre> <p>Please help me figure this out.</p>