问题
What's the simplest way to extract a slice of an NSArray in Objective-C?
(much like the array_slice function in PHP)
回答1:
-[NSArray subarrayWithRange:]
Reference:
https://developer.apple.com/documentation/foundation/nsarray/1415157-subarraywithrange
来源:https://stackoverflow.com/questions/1752955/how-to-slice-an-nsarray-in-objective-c