title: how to separate input string and populate on table view with how many times it repeated and passe the index to next
body: <p>I am very new to iOS and ObjectiveC. I searched everywhere but I didn't find required option and I was not able to understand.</p>
  
  <pre><code>UIAlertController * alertController = [UIAlertController alertControllerWithTitle: @""
                                                                            message: @"Enter input text"
                                                                     preferredStyle:UIAlertControllerStyleAlert];
  [alertController addTextFieldWithConfigurationHandler:^(UITextField *textField) {
      textField.placeholder = @"Text";
      textField.textColor = [UIColor blueColor];
      textField.clearButtonMode = UITextFieldViewModeWhileEditing;
      textField.borderStyle = UITextBorderStyleRoundedRect;
  }];
  [alertController addAction:[UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault handler:^(UIAlertAction *action)
                              {
                                  NSArray * textfields = alertController.textFields;
                                  UITextField * namefield = textfields[0];
                                  inputstring=namefield.text;
  
  
                                  for (int i = 0; i &lt; [inputstring length]; i++) {
                                      [array addObject:[NSString stringWithFormat:@"%c", [inputstring characterAtIndex:i]]];
                                  }
                                  _firsttblview.delegate=self;
                                  _firsttblview.dataSource=self;
                                  [_firsttblview reloadData];
                              }]];
  
  
  [self presentViewController:alertController animated:YES completion:nil];
  </code></pre>
  
  <p>To display in the table view I used the following code.</p>
  
  <pre><code> - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
      firstTableViewCell *cell = [_firsttblview dequeueReusableCellWithIdentifier:@"firstTableViewCell"];
      if (cell == nil)
      {
          cell = [[[NSBundle mainBundle]loadNibNamed:@"firstTableViewCell" owner:self options:nil]objectAtIndex:0];
      }
  
      int count=0;
      cell.charlbl.text=[array objectAtIndex:indexPath.row];
      NSString *singchstr=array[indexPath.row];
      for (int a=0; a&lt;array.count; a++) {
          NSString *chrstrh=array[a];
  
          if ([chrstrh isEqualToString:singchstr]) {
              count ++;
  
          }
      }
      for (int b=0; b&lt;indexPath.row; b++) {
  
          NSString *charststr=array[b];
  
          if ([singchstr isEqualToString:charststr]) {
              count=0;
              break;
          }
      }
      cell.countlbl.text=[NSString stringWithFormat:@"%d",count];
         return cell;
  
  }
  </code></pre>
  
  <p>If I click on the index path I have to send the the all repeating index with this index path.</p>
  
  <p>In the next table I have to delete one similar letter and I will go the back to then the letter in that index path should  delete.</p>