I happend to see one particular code,
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
[self.tableView insertRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationAutomatic];
What's the name of annotation @[indexPath]
, I never see this kind. and since when it introduces in objective-C. I know it replaces [NSArray arrayWithObjects:indexPath,nil]
, any other functions of that? what the feature to use this (well, other than shorter)?
Thanks.