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

查看:121
本文介绍了无法找到实例化的接口控制器类'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:@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屋!

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