NSArray *arrayTemp = [NSArray alloc] initWithObjects:@"asd", @"szdfasd", @"dsfgfdf", nil];
NSDictionary *dict = [NSDictionary alloc] initWithObjectsAndKeys:arrayTemp, @"temp_array", nil];
NSString result = [((NSArray ) [dict objectForKey:@"temp_array"]) objectAtIndex:(arrayTemp.count -1)];
答案 0 :(得分:1)
let arrayTemp = ["asd", "szdfasd", "dsfgfdf"]
let dict = ["temp_array" : arrayTemp]
let result = dict["temp_array"]!.last!