Hi you can try this one,
NSMutableArray *array =[NSMutableArray arrayWithObjects:@"Apple", @"Animal", @"baby", @"ball", nil];
NSPredicate *aPredicate =
[NSPredicate predicateWithFormat:@"SELF beginswith[a] 'b'"];
NSArray *beginWithA =
[array filteredArrayUsingPredicate:aPredicate];
The beginWithA array will have { @"Apple", @"Animal" }.
NSPredicate *bPredicate =
[NSPredicate predicateWithFormat:@"SELF contains[b] 's'"];
[array filterUsingPredicate:bPredicate];
The array will have { @"baby", @"ball" }
Thanks