title: UITableView cell are overlapping
body: <p>I'm implementing a tableView with section index. where my tableViewCells are overlapping whenever the rows are more than one in any particular section.</p>
  
  <p>Here is my code.</p>
  
  <pre><code>![- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
  {
      return \[self.keys count\];
  }
  
  - (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section {
  //    return \[\[\[UILocalizedIndexedCollation currentCollation\] sectionTitles\] objectAtIndex:section\];
      return \[keys objectAtIndex:section\];
  }
  
  - (NSArray *)sectionIndexTitlesForTableView:(UITableView *)tableView {
  //    return \[\[UILocalizedIndexedCollation currentCollation\] sectionIndexTitles\];
      return keys;
  
  }
  
  - (NSInteger)tableView:(UITableView *)tableView sectionForSectionIndexTitle:(NSString *)title atIndex:(NSInteger)index {
      return \[\[UILocalizedIndexedCollation currentCollation\] sectionForSectionIndexTitleAtIndex:index\];
  }
  
  - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
      static NSString *CellIdentifier = @"Cell";
      UITableViewCell *cell = \[tableView dequeueReusableCellWithIdentifier:nil\];
      if (cell == nil) {
          cell = \[\[UITableViewCell alloc\] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier\];
  
      }
      \[self.exhibitorTableView setSeparatorInset:UIEdgeInsetsMake(0, 0, 0, 0)\];
  
      UIView* bgview = \[\[UIView alloc\] initWithFrame:CGRectMake(0, 0, 1, 1)\];
      bgview.opaque = YES;
      bgview.backgroundColor = \[UIColor colorWithRed:244.0f/255 green:245.0f/255 blue:246.0f/255 alpha:1.0\];
      \[cell setBackgroundView:bgview\];
      cell.textLabel.font = \[UIFont fontWithName:@"Roboto-Light" size:17\];
      cell.detailTextLabel.font = \[UIFont fontWithName:@"Roboto-Light" size:13\];
      cell.textLabel.backgroundColor = \[UIColor clearColor\];
      cell.detailTextLabel.backgroundColor = \[UIColor clearColor\];
      cell.textLabel.textColor = \[UIColor colorWithRed:93.0f/255 green:94.0f/255 blue:94.0f/255 alpha:1.0\];
  
      UIImageView *defaultImage = \[\[UIImageView alloc\]init\];
      \[defaultImage setFrame:CGRectMake(5.0f, 5.0f, 40.0f, 40.0f)\];
      \[cell addSubview:defaultImage\];
  
      for (int i=0; i&lt;\[self.exhibitorArray count\]; i++) {
          NSString * string = \[\[self.exhibitorArray objectAtIndex:i\]valueForKey:@"name"\];
          NSString *firstLetter = \[string substringToIndex:1\];
      if (\[\[keys objectAtIndex:indexPath.section\] isEqualToString:firstLetter\] ) {
  
      NSString *urlString = \[\[NSString alloc\]init\];
      urlString = @"http://";
      urlString = \[urlString stringByAppendingString:\[NSString stringWithFormat:@"%@",\[\[self.exhibitorArray objectAtIndex:i\]valueForKey:@"image"\]\]\];
      NSLog(@"%@",urlString);
  
      AsyncImageView *asyncImageView = \[\[AsyncImageView alloc\] initWithFrame:CGRectMake(0.0f, 0.0f, 40.0f, 40.0f)\];
      \[asyncImageView setBackgroundColor:\[UIColor clearColor\]\];
      NSString *tmp_string = \[\[NSString alloc\]init\];
      tmp_string = urlString;
      \[asyncImageView loadImageFromURL:\[NSURL URLWithString:tmp_string\]\];
      \[defaultImage addSubview:asyncImageView\];
      defaultImage.contentMode = UIViewContentModeScaleAspectFit;
      tmp_string = nil;
      asyncImageView = nil;
      defaultImage = nil;
  
      NSString *name_string = \[\[NSString alloc\]init\];
      name_string = \[\[self.exhibitorArray objectAtIndex:i\]valueForKey:@"name"\];
      NSLog(@"%@",name_string);
      UILabel *user_name = \[\[ UILabel alloc\]init \];
      \[user_name setFrame:(CGRectMake(58, 5, 270, 25))\];
      \[user_name setBackgroundColor: \[UIColor clearColor\]\];
      \[user_name setText:name_string\];
      \[user_name setFont:\[UIFont fontWithName:@"Roboto-Light" size:14\]\];
      \[user_name setTextAlignment:NSTextAlignmentLeft\];
      \[user_name setTextColor:\[UIColor colorWithRed:93.0f/255 green:94.0f/255 blue:94.0f/255 alpha:1.0\]\];
      \[cell addSubview:user_name\];
      user_name = nil;
          }
      }
  
      \[cell setAccessoryType:UITableViewCellAccessoryDisclosureIndicator\];
  
      return cell;
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/LK91h.png" alt="enter image description here"></p>