每对的第二个对象必须是非零的 [英] Second object of each pair must be non-nil
本文介绍了每对的第二个对象必须是非零的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在开发应用程序,当我调试我的代码时,它显示以下错误。
Iam working on app and when i debug my code it is showing the following error.
-(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参数列表?'
* 第一次调用堆栈:
In the debug cosole it is gving this reason. '+[NSDictionary dictionaryWithObjectsAndKeys:]: second object of each pair must be non-nil. Or, did you forget to nil-terminate your parameter list?' * Call stack at first throw:
推荐答案
@name,@Type,
应为 @name,@Type,
,
在字符串中。
这篇关于每对的第二个对象必须是非零的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文