无法找到实例化的接口控制器类'InterfaceController' [英] Unable to find interface controller class 'InterfaceController' to instantiate
问题描述
我每次运行项目时都会收到此错误并尝试导航到另一个屏幕。
I'm getting this error every-time I run the project and try to navigate to another screen.
Unable to find interface controller class 'HelpInterfaceController' to instantiate
我正在使用我所知道的正确:
- (IBAction)HelpButton {
[self presentControllerWithName:@helpcontext:nil]; }
名称 help
也是标识符中的名称。
那么我出错了什么或哪里?
I'm using the correctly that I know:
- (IBAction)HelpButton {
[self presentControllerWithName:@"help" context:nil]; }
Also the name help
is as it is in the identifier.
So what or where I'm going wrong?
推荐答案
我发现了错误!这是因为我的.m文件,它的目标成员资格是 MemGame
而不是 MenGame WatchKit Extension
。所以我取消选中第一个选项并选择第三个选项,现在它运行得很好。
I've found the error! It was because of my .m file, it's target membership was MemGame
instead of MenGame WatchKit Extension
. So I uncheck the first option and selected the third option and now it's running perfectly.
这篇关于无法找到实例化的接口控制器类'InterfaceController'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!