this is my piece of code:
NSUInteger indexArr[] = {1,2,3,4};
NSIndexSet *indexSet = [NSIndexPath indexPathWithIndexes:indexArr length:4];
Is there a way to declare an indexArr string like
NSIndexSet *indexSet = [NSIndexPath indexPathWithIndexes:{1,2,3,4} length:4];
or something else? This is because I am writing a test with some reference paths, and I want to save lines of code that are not useful to anyone ...
Regards, hijolen
source
share