我正试图在我的项目中实现BWWalkthrough。然而,我得到一个错误声明
Unknown class _TtC20BWWalkthroughExample27BWWalkthroughViewController in Interface Builder file.
Could not cast value of type 'UIViewController' (0x195bca580) to 'AppName.BWWalkthroughViewController' (0x10042c3a0).
(lldb) 它指向下面的代码
let walkthrough = stb.instantiateViewControllerWithIdentifier("walk") as! BWWalkthroughViewController我不知道为什么会这样。任何帮助都将不胜感激。
也可以自由地要求更多的代码从我的项目。
发布于 2015-08-16 18:19:46
您的故事板似乎没有链接到一个BWWalkthroughViewController。找到视图控制器应该在哪里是一个BWWalkthroughViewController,并检查它是否是一个。
发布于 2018-04-12 19:47:49
我也有同样的问题。
我可以修复设置BWWalkthroughViewController,而不是BWWalkthroughPageViewController在我的整个故事板。

发布于 2020-12-26 00:22:57
我也有过类似的问题
接口生成器文件中的未知类WelcomeViewController。不能将“UIViewController”(0x7fff898d1f50)转换为“SimpleLoginApp.WelcomeViewController”(0x108864c48)。
通过以下步骤能够解决这个问题:

https://stackoverflow.com/questions/32038385
复制相似问题