title: Data repeat on each cell in TableView
body: <hr>
  
  <p>Hi! I have a problem on <code>UITableView</code>. I add <code>PickerView</code> to my <code>textField</code> in some of row in section as code below. Actually, <code>pickerView</code> will add to cell at indexPath.row but not for each section. So that make me stuck for this morning. Sorry my english isn't good. Special thank for your solution.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {
      let data = (self.tableItems[indexPath.section].value?[indexPath.row])!
      let identifier : String = data["CELL_IDENTIFIER"]!!
      let cell = tableView.dequeueReusableCell(withIdentifier: identifier)
      if cell is QuotationHeaderInSectionCell{
          let headerCell = cell as! QuotationHeaderInSectionCell
          headerCell.lblHeaderInSectionTitle.text = data["TEXT_LABEL"]!!
      }else if cell is QuotationItemCell{
          let itemCell = cell as! QuotationItemCell
          itemCell.lblCellTitle.text = data["TEXT_LABEL"]!!
          switch indexPath.section {
          case 0:
              switch indexPath.row {
              case 1:
                  self.initInputViewForTextField(sender: itemCell.textFieldCell, inputView: titlePickerView)
                  break
              case 4:
                  self.initInputViewForTextField(sender: itemCell.textFieldCell, inputView: genderPickerView)
                  break
              case 10:
                  self.initInputViewForTextField(sender: itemCell.textFieldCell, inputView: provincePickerView)
                  break
              case 11:
                  self.initInputViewForTextField(sender: itemCell.textFieldCell, inputView: districtPickerView)
                  break
              case 12:
                  self.initInputViewForTextField(sender: itemCell.textFieldCell, inputView: communePickerView)
                  break
              case 13:
                  self.initInputViewForTextField(sender: itemCell.textFieldCell, inputView: villagePickerView)
                  break
              default:
                  break
              }
              break
          case 1:
              switch indexPath.row {
              case 0:
                  self.initInputViewForTextField(sender: itemCell.textFieldCell, inputView: assetMakePickerView)
                  break
              case 1:
                  self.initInputViewForTextField(sender: itemCell.textFieldCell, inputView: assetRangePickerView)
                  break
              case 2:
                  self.initInputViewForTextField(sender: itemCell.textFieldCell, inputView: assetModelPickerView)
                  break
              case 3:
                  self.initInputViewForTextField(sender: itemCell.textFieldCell, inputView: assetColorPickerView)
                  break
              default:
                  break
              }
          case 2:
              if indexPath.row == 0 {
                  self.initInputViewForTextField(sender: itemCell.textFieldCell, inputView: dealerPickerView)
              }
              break
          case 3:
              switch indexPath.row {
              case 0:
                  self.initInputViewForTextField(sender: itemCell.textFieldCell, inputView: financeProductPickerView)
                  break
              case 1:
                  self.initInputViewForTextField(sender: itemCell.textFieldCell, inputView: advPaymentPercentPickerView)
                  break
              case 3:
                  self.initInputViewForTextField(sender: itemCell.textFieldCell, inputView: assetColorPickerView)
                  break
              default:
                  break
              }
              break
          default:
              break
          }
  
      }else if cell is QuotationCommentCell{
          let commentCell = cell as! QuotationCommentCell
          commentCell.textViewComment.text = data["TEXT_LABEL"]!!
      }else if cell is DocumentTableViewCell{
          let documentCell = cell as! DocumentTableViewCell
      }
      return cell!
  }
  </code></pre>