下面的代码运行之后会报错:
NSString *string=@"some string";
[self.dataResponse setValue:string forKey:@"Code"];
我还这样试过:
NSString *string=@"some string";
[self.dataResponse setObject:string forKey:@"Code"];
但是这两段代码都会出现nsmutable dictionary self.dataResponse is null。
不知道哪里出错了?
谢谢。