Second object of each pair must be non-nil

后端 未结 3 952
轮回少年
轮回少年 2021-01-21 12:17

Iam working on app and when i debug my code it is showing the following error.

-(IBAction)addSelected:(id)sender
{

    NSString* emptyStr = @\"\";

    NSDictio         


        
3条回答
  •  轮回少年
    2021-01-21 12:26

     NSDictionary* traits = [NSDictionary dictionaryWithObjectsAndKeys:
            self.walletName.text,       @"alias",
            self.abc.text,     @"abc",
            self.field.text,     @"field",
            @"name",                @"Type", nil];
    

    The problem is form @"name,".

提交回复
热议问题