close
uitableviewcellaccessorycheckmark
It took me some time to figure out the exact solution. There are a lot of tutorials available on internet, but the exact way to put UITableViewCellAccessoryCheckmark is answered in this question.

Code:

Keep in mind is that you must be doing something with the multiple selection of cells, meaning when the user will select multiple rows you need this data somewhere so that you can put it to use. Make sure you have a NSMutableArray *userSelectedArray when user taps on a cell you highlight it and store that selected value somewhere. Same goes when user unselect a cell you remove the value and myValuesArray is an array which have all the values you are currently seeing on your table view. So in cellForRowAtIndexPath before returning the cell you check

After that for select and unselect you use:

 

Tags : how to UITableViewCellAccessoryCheckmarkUITableViewCellAccessoryCheckmark
Chaudhary Talha

The author Chaudhary Talha

I'm an iOS developer by profession and UI/UX designer by passion. All my tutorials are based on my personal experiences and whenever I learn something new I share it with the world.