cocoa简洁写法笔记
对cocoa的一些语法糖做的笔记
NSNumber
1 | NSNumber *totalNumber = [NSNumber numberWithInt:1]; |
NSArray
1 | NSArray *members = [NSArray arrayWithObjects:@"father",@"mother",@"Jim",nil]; |
NSDictionary
1 | NSDictionary *personData = [NSDictionary dictionaryWithObjectsAndKeys:@"Jim",@"name",@"man",@"gender",nil]; |