i have created one table view in which i have provided searching & deleting facility. My problem is that when i am not in searching mode the data is going to be deleted properly & shows the table properly after deleting data. but my problem is that i have two NSMutableArrays one is original and second one is searched NSMutableArray so when i delete data from searched Array at that time i want to delete data from original array also.
NSString *str = [searchedName objectAtIndex:indexPath.row];
NSLog(@"str:=%@",str);
[searchedName removeObjectAtIndex:indexPath.row];
[arrName removeObjectIdenticalTo:str];
so here my point is that i can’t delete original data with use of removeObjectAtIndex:index.path because the searched array count will be different from original array count so from original array it will delete another value witch i have not deleted from searched value.
did you get my point? please mention me if you don’t get my point.
how can i implement like this? please guide me.
You can first search the index from the original array