0

I'm trying to load all cells in table view but I can't. I have received an error. Did you have any solution to fix this issue?

This is my code :

func selectAllowCellInTableView(tableView:UITableView){
        for j in 0..<tableView.numberOfSections{
            for i in 0..<tableView.numberOfRows(inSection: j){

                let indexPath = NSIndexPath(row: i, section: j)
                let cell = tableView.cellForRow(at: indexPath as IndexPath) as! VideoTableViewCell
                cell.imageViewCheck.isHidden = false
            }
        }
    }
ItsOdi1
  • 219
  • 3
  • 22
Hamza Almass
  • 41
  • 1
  • 6
  • this is the error which i receive it when i excute my code (fatal error: unexpectedly found nil while unwrapping an Optional value (lldb) – Hamza Almass Jan 26 '17 at 11:34
  • each cell have the folder icon with the label the table view only see the visible cells but the cells which is not visible display this error – Hamza Almass Jan 26 '17 at 11:39

0 Answers0