title: How to search data from tableView in ipad and show that data in same table.
body: <p>I have text field from which, I want that if user enters any data and it matches to the any of the cell in tableView then it must show.I have used text field for searching the data from table.</p>
  
  <p>This is how, I am populating data in the tableView as below:</p>
  
  <pre><code>     - (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section
    {
  
      NSLog(@"Number of Sections");
      if(section == 0)
      return @"Sales";
      if(section == 1)
      return @"Soft Skills";
     }
  
      - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
  
  
         if (section==0)
      {
      appDelegate = (MultipleDetailViewsWithNavigatorAppDelegate *)[[UIApplication sharedApplication] delegate];
  
      int count=[resultArray count];
  
      NSLog(@"resultArry Row Counts is %d",count);
  
      return [resultArray count];
      }
  
         else{
      appDelegate = (MultipleDetailViewsWithNavigatorAppDelegate *)[[UIApplication sharedApplication] delegate];
  
      int count=[resultArrayOne count];
  
      NSLog(@"resultArry Row Counts is %d",count);
  
      return [resultArrayOne count];
        }
           }
  
  
          - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath     
  
        {
  
       NSLog(@"Table Cell Data");
       static NSString *CellIdentifier = @"Cell";
  
           UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
  
           if (cell == nil) {
           cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier];
  
         }
  
     cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
  
  
     if (indexPath.section==0) {
  
  
      appDelegate = (MultipleDetailViewsWithNavigatorAppDelegate *)[[UIApplication sharedApplication] delegate];
  
  
      ObjectData *theCellData = [resultArray objectAtIndex:indexPath.row];
      NSString *cellValue =theCellData.sub_Category;
      NSLog(@"Cell Values %@",cellValue);
      cell.textLabel.text = cellValue;
  
      return cell;
  
         }
  
        else {
  
      appDelegate = (MultipleDetailViewsWithNavigatorAppDelegate *)[[UIApplication sharedApplication] delegate];
      ObjectData *theCellData = [resultArrayOne objectAtIndex:indexPath.row];
      NSString *cellValue =theCellData.sub_Category;
      NSLog(@"Cell Values %@",cellValue);
      cell.textLabel.text = cellValue;
      return cell;
  
      }
            }
  
  
        -(void)textFieldTextDidChange:(UITextField*)tf{
  
  
  
     NSString*test  = searchTextField.text ;
  
     }
  </code></pre>