我需要从 2 NSMutableDictionary 添加值这是我的示例但不工作 =(
NSMutableDictionary *coord = [[NSMutableDictionary alloc] init];
NSMutableDictionary *data = [[NSMutableDictionary alloc] init];
data = [dao obtenerDatosFinales];
并且您需要获取两个值 objectForKey 并填充另一个 NSMutableDictionary (coord)
coord = [data objectForKey:@"latitud"];
coord = [data objectForKey:@"longitud"];
NSLog(@"Dictionary: %@", [coord description])!
但只填一键。有什么想法吗?坦克!