Cell images are loading incorrectly iOS swift

Solution:

If you loaded the image with if condition then you must have to put the else condition in your cell.

Then only it will works good.Otherwise image will be loaded incorrectly.


                    if name == ""{


cell.imgView.image = UIImage(named: "imagename")                    } else {
cell.imgView.image = nil
}

Comments