代码:
#importint main(int argc, const char * argv[]) { @autoreleasepool { NSDictionary *dic1=@{ @"name":@"yang", @"class":@"IOS6", @"age":@"24"}; NSDictionary *dic2=@{ @"name":@"ming", @"class":@"IOS8", @"age":@"27"}; NSMutableArray *arr1=[NSMutableArray array]; //初始化数组 [arr1 addObject:dic1]; //将字典增加位数组元素 [arr1 addObject:dic2]; for(int i=0;i