I'm trying to filter my contacts based on alphabets, something like this
NSArray *sectionArray = [contactAdd filteredArrayUsingPredicate:[NSPredicate predicateWithFormat:@"SELF beginswith[c] %@", [self.friendListSection objectAtIndex:section]]];
But here the problem is contactAdd is not a regular array its CFArray defined as
@property CFArrayRef contactAdd;
So this code wont work, is there any alternative to use the above code for CFArray or any other solution to get the desired result??
Note:I dont want to change my contactAdd to regular array, I need to use CFArray only