I have an application in which i have an nsmutable array created like this .`
NSDictionary *memberInfo = [self.currentChannel infoForMemberWithID:memberID];
for(int i=0;i<self.currentChannel.memberCount;i++)
{
[searchfriendarray addObject:memberInfo];
}
NSLog(@"dfdfdfsear%@",searchfriendarray);
The response i am getting is this
dfdfdfsear(
{
name = baddd;
status = "<null>";
},
{
name = baddd;
status = "<null>";
}
)
`
Now i want to search an nsstring in this.with the method
- (void)searchBar:(UISearchBar *)searchBar textDidChange:(NSString *)searchText
Can anybody help me in implementing the search and load my tableview according to that?
Use NSPredicate to filter the array.