Prevent reuse of custom cells as a Swift table

I have a problem, I'm not sure how to solve it.

I have two user elementary elements: the data for both is selected from separate arrays.

The structure is as follows

nib1-cell line1
nib1-cell line2
...
nib1-cell line n
nib2-cell line1

There is always one nib2 cell at the end of c uibutton.
After clicking uibutton- the nib1 array is added.
I figured out the way to insert values ​​at the bottom tableview, but when I scroll down or up, the cell with nib2 is reused and replaced with nib1-cell data. enter image description here

How can I either prevent the reuse of these cells or keep their state?

Thanks.

UPDATE: data source code and cellForRowAtIndexPath

func tableView (tableView: UITableView, numberOfRowsInSection section: Int) -> Int {

    return someTagsArray.count

}

func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell     {

    if(indexPath.row < someTagsArray.count - 1){
        var cell:TblCell = self.tableView.dequeueReusableCellWithIdentifier("cell") as! TblCell

        cell.lblCarName.text = someTagsArray[indexPath.row]


        return cell

    } else if (indexPath.row == someTagsArray.count - 1){
      var celle:vwAnswers = self.tableView.dequeueReusableCellWithIdentifier("cell2") as! vwAnswers
        celle.Answer1.setTitle(answersdict[answersdict.endIndex - 2], forState:UIControlState.Normal)

        answertitle1 = "\(celle.Answer1.currentTitle!)"

        celle.Answer2.setTitle(answersdict.last, forState:UIControlState.Normal)
        answertitle2 = "\(celle.Answer2.currentTitle!)"

        //println(answertitle2)

        return celle

    } else {
                    var cell2:TblCell = self.tableView.dequeueReusableCellWithIdentifier("cell") as! TblCell
        return cell2
    }

}
+4
1

, cellForRowAtIndexPath, . , - if (indexPath.row + 1)%3 == 0, .

, , . , , .

+2

All Articles