Getting Wrong id from NSMutableArray in objective c
问题 I'm new in iOS and when I add search box in my textbox after searching it give me the wrong id. In my code there is three array one is for id another is for name and third one is to search. My code: - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)sections{ if(tableView == table) { if(isFilter) { return [searchArray count]; } else return [idarray count]; } } - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {