how to add checkmark in tableview swift

globalworld picture globalworld · May 4, 2016 · Viewed 8.4k times · Source

I'm trying to show checkmark on tableview cell, but the checkmark appears only sometimes and it disappears when I scroll.

Below the code:

Answer

Pavan Gandhi picture Pavan Gandhi · May 5, 2016

Just do following changes in your code to maintain checkmark into tableview while you are scrolling tableview

enter image description here

Result :

enter image description here

Its work fine now, Any problem let me know i will definitely help you to out.Enjoy..