Ios 当我滚动tableview时,其单元格会自动更新。我如何停止更新单元格?

Ios 当我滚动tableview时,其单元格会自动更新。我如何停止更新单元格?,ios,swift,swift3,uikit,tableview,Ios,Swift,Swift3,Uikit,Tableview,当我滚动tableview时,其单元格会自动更新 如何停止更新手机 我的代码片段: func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell = tableview.dequeueReusableCell(withIdentifier: Constant.FAV_CAROUSEL_CELL_IDENTIFIER,

当我滚动
tableview
时,其单元格会自动更新

如何停止更新手机

我的代码片段:

func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell
    {
        let cell = tableview.dequeueReusableCell(withIdentifier: Constant.FAV_CAROUSEL_CELL_IDENTIFIER, for: indexPath) as! carouselFavCell

        let objProvider1 = objProvider.providerArr[indexPath.row] as! ProviderModel
        self.providerArr = objProvider.providerArr[indexPath.row] as! ProviderModel
        self.apointmentArr = objProvider1.appointmentArr
        self.serviceArr = objProvider1.serviceArr

        cell.caroudelView.reloadData()

        cell.caroudelView.type = .linear
        cell.caroudelView.tag = indexPath.row

        cell.selectionStyle = .none
        cell.contentView.backgroundColor = Constant.CELL_BG_COLOR

        cell.caroudelView.backgroundColor = Constant.CELL_BG_COLOR
        cell.lblProviderName.text = objProvider1.providerName

        cell.lblProviderName.textColor = Constant.LBL_TITLE_DARK_GRAY
        cell.lblProviderName.font = UIFont.boldSystemFont(ofSize: 15)

        cell.btnMenu.setBackgroundImage(UIImage(named: "option1.png"), for: .normal)

        cell.buttonAction = { (sender) in
            self.providerArr = self.objProvider.providerArr[indexPath.row] as! ProviderModel
            self.actionPicker()
        }
    return cell
}

尝试删除以下行:

cell.caroudelView.reloadData()

我想,如果没有这一行,单元格将只有在第一次出现时才具有它们获得的值。

您到底想做什么?当tableview滚动单元格无法更新时