I have an array "names" which contains names starting with letters a, b and c.(like anju,chandu,basha,chitra,amith,baskar)
I have three NSMutablearray
as,bs and cs.
Now the question is how to get the names from "names" array assign the names starting with letter 'a' to 'as' mutablearray
, names starting with letter 'b' to 'bs' mutablearray
and names starting with letter 'c' to 'cs' mutablearray
?
Could anyone please help..
Thank you.
NSPredicate
on the array like:SELF beginswith[c] 'a'
, etc.