click to check the image that makes clear what i am asking >>>>
嗨,大家好,我是编程新手。我已经成功构建了一个Master Detail应用程序,并且Page View Controller也可以正常工作,但是现在我希望我可以通过单击按钮从我的详细信息视图导航到Page View Controller。我尝试过,但总是遇到如下所述的错误:
*Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIStoryboardShowSegueTemplate 0x604000278140> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key containerView.'*
我到处搜索了很多内容,但没有找到解决方案。我希望你们中的任何一个都能帮助我。请检查上面的图像链接,以查看故事板中的页面结构。预先感谢。
**In the Image i have used some short cut words mentioned below:
MVC = MasterViewController,
NC = NavigationController,
tb V = TableView,
PVC = PageViewController**
这是我用来从详细信息页面导航到页面视图控制器的按钮单击功能。 PageVC是页面视图控制器的StoryboardID:
@IBAction func goToSlider(_ sender: UIButton) {
let storyboard: UIStoryboard = UIStoryboard(name: "Main", bundle: nil)
let nextViewcontroller = storyboard.instantiateViewController(withIdentifier: "pageVC") as! PageViewController
self.navigationController?.pushViewController(nextViewcontroller, animated: true)
}