数组新添加法
数组新添加法
NSMutableArray *mArray = [NSMutableArray new];
for (int i = 0; i < 3; i ++) {
[mArray addObject:@[@"one",@"tow",@"three"][i]];
}
输出mArray:@"one",@"tow",@"three"
NSDictionary *tempDict = @{@"expand3":@{@"res":@{@"time": @"2013-10-31"}}};
NSLog(@"expand3.res = %@ time = %@",[tempDict valueForKeyPath:@"expand3.res"],[tempDict valueForKeyPath:@"expand3.res.time"]);
输出@"2013-10-31"