按键命令都必须具有标题,按键和选择器 [英] Key Commands must all have a Title, Key and Selector

查看:201
本文介绍了按键命令都必须具有标题,按键和选择器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在尝试构建Xcode 8.0 Beta 4时收到错误,并且在构建时显示错误:非法配置:键盘命令必须全部具有标题,密钥和选择器.表以检查其配置."

I am receiving and error when trying to build, Xcode 8.0 Beta 4, and when I'm building it says "error: Illegal Configuration: Key Commands must all have a Title, Key, and Selector. Select each row in the table to check its configuration."

它不在TableView或其他任何东西上,它是一个UIView,里面有一个Stack View和一些按钮,就是这样.

It isn't on a TableView or anything, its a UIView with a Stack View inside it and some buttons, thats about it.

这是在情节提要文件上,我收到错误消息

And this is on a Storyboard file I'm getting the error

我不知道那可能是什么?

I can't figure out what that might be?

推荐答案

将情节提要文件作为源代码打开(右键单击->以"...打开"->源代码).应该有一行,<keyCommands> <keyCommand/> </keyCommands>.删除它应该可以解决您的问题.

Open your storyboard file as source code (right click -> open as -> source code). There should be a line, <keyCommands> <keyCommand/> </keyCommands>. Removing this should solve your problem.

此行可能是由于意外单击视图控制器的属性检查器的键盘命令部分中的+按钮引起的,尽管可能是由其他因素引起的.多余的行可能会导致XCode中发生奇怪的事情,例如错误和崩溃.

This line can be caused by accidentally clicking the + button in the key commands section of the view controller's attributes inspector, although it may be caused by other factors. The extra line can cause weird things to happen in XCode, such as errors and crashes.

这篇关于按键命令都必须具有标题,按键和选择器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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