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

use*_*147 3 iphone cocoa-touch objective-c

我在app上工作,当我调试我的代码时,它显示以下错误.

-(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
Run Code Online (Sandbox Code Playgroud)

在调试cosole中,它正是这个原因.'+ [NSDictionary dictionaryWithObjectsAndKeys:]:每对的第二个对象必须是非零的.或者,您是否忘记了终止参数列表? *第一次投掷筹码:

Dee*_*olu 6

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

,是里面的字符串.