So I created this number of sections based on user input.
For example I inputed 2 sections, I filled with 1 - 8 numbers, and it work just fine:

[![enter image description here](https://i.stack.imgur.com/5bFPa.png)](https://i.stack.imgur.com/5bFPa.png)

But when I inputed 4 sections and I filled with 1 - 16 numbers, but look at the section 1, the value changed I do not know why. Here's the pict:

[![enter image description here](https://i.stack.imgur.com/Hzwgx.png)](https://i.stack.imgur.com/Hzwgx.png)

Here my function code:

```
func getAllValue() {
    for sectionIndex in 0...finalSectionNumber - 1 {
        print("section index: \(sectionIndex)")
        print("final txt field: \(finalSectionNumber)")
        for rowIndex in 0...tableView.numberOfRows(inSection: sectionIndex) - 1 {
            let indexPath = IndexPath(row: rowIndex, section: sectionIndex)
            let cells = tableView.cellForRow(at: indexPath) as? CellOutlet
            print("row index: \(rowIndex)")
            print(cells?.txtFieldSpecNumb.text ?? 0)
        }
    }
}

```

What did I miss here?
Can anyone help?

Thankyou in advance