gpt4 book ai didi

ios - 由于未捕获的异常 'NSInvalidArgumentException' 而终止应用程序,原因 : '-[NSNull _fastCStringContents:]: unrecognized selector

转载 作者:搜寻专家 更新时间:2023-11-01 05:57:24 25 4
gpt4 key购买 nike

我在 Xcode 中创建了一个新的 tabbed application。每次尝试在文本字段中键入任何字母或数字时,我都会收到以下错误。

我注意到当我选中 "is initial view controller"

复选框时开始出现此错误

当我将 ViewController 本身设置为 initial ViewController 时,它不会抛出错误。但是,当我将 NavigationController 设为 initial ViewController 时,它会抛出此错误。

收到错误:

Reminder[46707:4165261] -[NSNull _fastCStringContents:]: unrecognized selector sent to instance 0x10d087af0
2016-03-23 00:48:19.830 Cable tech Reminder[46707:4165261] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull _fastCStringContents:]: unrecognized selector sent to instance 0x10d087af0'

最佳答案

对我来说,这个问题是因为我无意中点击了属性检查器中的 Key Commands 控件。我没有创建任何命令,但是空条目会导致文本字段中的任何输入崩溃。

解决方案:-1) 右键单击​​ Storyboard并以源代码打开。2) 搜索 keyCommands 并删除那个空的 keyCommands 标签。3) 清理并运行。

这解决了我的问题,希望对你也有帮助。干杯

关于ios - 由于未捕获的异常 'NSInvalidArgumentException' 而终止应用程序,原因 : '-[NSNull _fastCStringContents:]: unrecognized selector,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36170144/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com