How to slice an NSArray in Objective-C?
What's the simplest way to extract a slice of an NSArra开发者_如何学Goy in Objective-C?
(much like the array_slice function in PHP)
-[NSArray subarrayWithRange:]
Reference:
https://developer.apple.com/documentation/foundation/nsarray/1415157-subarraywithrange
精彩评论