#import <Foundation/Foundation.h>
int main(int argc, const char * argv[]) {
@autoreleasepool {
// insert code here...
NSDictionary *dic1=@{@"name":@"bb",@"class":@"IOS8",@"age":@"22"};
NSDictionary *dic2=@{@"name":@"aa",@"class":@"IOS6",@"age":@"24"};
NSMutableArray *mutArr=[NSMutableArray array];
[mutArr addObject:dic1];
[mutArr addObject:dic2];
for(id xin in mutArr){
NSDictionary *dic=xin;
// NSLog(@"班级:%@",@"姓名:%@",@"年龄:%@",dic[@"class"],dic[@"name"],dic[@"age"]);
//for (NSDictionary *dic in muarr) {
// NSDictionary *dic = obj;
// NSLog(@"班级:%@,姓名:%@,年龄%@",[dic objectForKey:@"class"],[dic objectForKey:@"name"],[dic objectForKey:@"age"]);
NSLog(@"班级:%@,姓名:%@,年龄%@",dic[@"class"],dic[@"name"],dic[@"age"]);
}
return 0;
}
}