我想创建一个字典,键为“name”,数字为“George's iPhone”和“123456”。
我的代码是:
NSString *name = @"George’s iPhone";
NSMutableDictionary *dict = [[NSMutableDictionary alloc]init];
[dict setValue:@"123456" forKey:@"number"];
[dict setValue:name forKey:@"name"];
但我得到了,
name = "George\U2019s iPhone";
value = "123456";