Assuming that I have an array that contains 25 objects within. How can I do to filter the array with range from 20 to 30? I know that I can use - subarrayWithRange:. But if the range is out of the existed object range, then it will be crashed.
In SQLite we can use limit(location, length) to retrieve result. So I think is there a way that I can approach this?
Edit:
I may express the question a little fuzzy, is there any syntax in NSPredicate like "limit(location, length)" in SQLite? then I don't need to check the max anymore?