我正在开发应用程序,当我调试我的代码时,它显示以下错误。
-(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/