无法找到要实例化的接口控制器类“InterfaceController" [英] Unable to find interface controller class 'InterfaceController' to instantiate

查看:29
本文介绍了无法找到要实例化的接口控制器类“InterfaceController"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我每次运行项目并尝试导航到另一个屏幕时都会收到此错误.

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:@"help" context: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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆