NSArray *physicsValue = [NSArray arrayWithObjects:@6.88,@1.07e-7,nil]; NSArray *physicsValue = @[@6.0229e23,@1.07e-7]; self.value = [NSNumber numberWithInt:0]; self.value = @0; NSDictionary namesDictionary = [NSDictionary dictionaryWithObjectAndKeys:physicsNames, @"Physics Constants", mathematicsNames, @"Mathematics",funNumbers, @"Fun Numbers"]; NSDIctionary = @{@"Physics Constants" : physicsNames, @"Mathematics" : mathematicsNames, @"Fun Number" : funNames}; valuesDictionary = [@{ @"Physics Constants" : physicsValues, @"Mathematics": mathematicsValues, @"Fun Numbers": @[@-273.15, @90210, @1.618, @214, @13] } mutableCopy];
NSArray, NSDictionary语法糖
猜你喜欢
转载自lizhuang.iteye.com/blog/1923518
今日推荐
周排行