Comment réparer “plume mais n'a pas obtenu un UITableView d'erreur”?

Pourquoi j'ai cette erreur?

Résiliation d'application en raison de uncaught exception
'NSInternalInconsistencyException', la raison: '-[UITableViewController
loadView] chargé de la "pB1-re-lu8-vue-o7U-YG-E7m" plume mais n'a pas obtenu un
UITableView.'

voici mon code:

class FriendListTableViewController: UITableViewController{
var objects = NSMutableArray()
var dataArray = [["firstName":"Debasis","lastName":"Das"],["firstName":"John","lastName":"Doe"],["firstName":"Jane","lastName":"Doe"],["firstName":"Mary","lastName":"Jane"]]
override func viewDidLoad() {
super.viewDidLoad()
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
//Dispose of any resources that can be recreated.
}
//MARK: - Table View

override func numberOfSectionsInTableView(tableView: UITableView) -> Int {
return 1
}
override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return dataArray.count
}
override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCellWithIdentifier("Cell", forIndexPath: indexPath) as! UITableViewCell
let object = dataArray[indexPath.row] as NSDictionary
(cell.contentView.viewWithTag(10) as! UILabel).text = object["firstName"] as? String
(cell.contentView.viewWithTag(11) as! UILabel).text = object["lastName"] as? String
return cell
}
override func tableView(tableView: UITableView, canEditRowAtIndexPath indexPath: NSIndexPath) -> Bool {
//Return false if you do not want the specified item to be editable.
    return false
}

mon storyboard est comme ceci:

Comment réparer “plume mais n'a pas obtenu un UITableView d'erreur”?

définissez le délégué...
comment puis-je le faire correctement?
Écrire dans le Vide Fait de la Méthode de Chargement.. auto.délégué=auto; auto.dataSource=auto; et dans le ViewController.h Étendre.. <UITableViewDelegate ,UITableViewDataSource>
Essayez cela et de m'en informer après la résolution de votre problème.
n'est-ce pas votre réponse écrite en objective-c? parce que je suis en utilisant swift

OriginalL'auteur Ega Setya Putra | 2015-05-04