gpt4 book ai didi

iphone - 每对的第二个对象必须是非零

转载 作者:搜寻专家 更新时间:2023-10-30 19:55:32 24 4
gpt4 key购买 nike

我正在开发应用程序,当我调试我的代码时,它显示以下错误。

-(IBAction)addSelected:(id)sender
{

NSString* emptyStr = @"";

NSDictionary* traits = [NSDictionary dictionaryWithObjectsAndKeys:
self.walletName.text, @"alias",
self.abc.text, @"abc",
self.field.text, @"field",
@"name," @"Type",
nil];-------at this point it is showing thread recieved signal sigabrt

在调试控制台中给出了这个原因。'+[NSDictionary dictionaryWithObjectsAndKeys:]: 每对的第二个对象必须是非零。或者,你忘记了 nil-terminate 你的参数列表吗?* 第一次抛出调用堆栈:

最佳答案

@"name", @"Type", 应该是 @"name", @"Type",

,在字符串里面。

关于iphone - 每对的第二个对象必须是非零,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6345637/

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