裏面我有一個類似的問題: UITableViewController inside a UIViewController的UITableViewController與SWIFT一個UIViewController和Xcode中8
我完全地按照相同的步驟。 我有一個UIViewController
與我的自定義類:MyCustomClassViewController
和UITableViewController
命名MyCustomUITableViewController
。
在我的ViewController內部,我添加了一個Container View
並拖放到我的UITableView
和選定的embed
。
好了,現在,當我執行的項目,我得到這個錯誤:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'containerView is required.'