I have an NSArray
containing instances of MyCustomObject
; each has a NSString
called firstName
.
The array is sorted by that property, from A to Z.
I want only these objects where firstName
starts with the letter A
.
For example, suppose my array has 100 objects.
1. Apple
2. Ace
3. Article
4. Ball
5. Cat
6. Camel
....
100. Zebra
Here, I want only "Apple", "Ace", and "Article".