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

Popular posts from this blog

Invalid bundle error while upload the app to the app Store

Convert NsNumber, NSDate to String in iOS Swift

Global LocationManager Singleton class iOS Swift