I have an UIViewController which has UITableView in it. Everything works fine. In "didSelectRowAtIndexPath" methos I want to activate a "show" segue to UIViewController. I set it in Storyboard, created its ViewController class etc.
When I choose the cell, I get an error saying:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UITableViewController
loadView] instantiated view controller with identifier
"UIViewController-ndM-tm-7SM" from storyboard "Main", but didn't get a
UITableView.'
Interestingly, I found that although I put a ViewController to the storyboard, it's changing to Table View Controller by itself. It's picture:
Tis is not initial situation, at first i checked the same place and there were only ViewController. Probably this is the problem.
I looked the same question asked before but they are different. My root view controller is not table view controller, it's view controller including table view.
Anyway, what should i do to handle this? I use prepareForSegue method either and it seems that there's nothing wrong about it.
Thanks!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…