Hi, I want to make a TableView with Checkmarks similar to selecting a day at the alarmssettings. I have found a code on the internet but it isn't working. and I have a code from a book but I it doesn't work either. please help me
A:
You need to check like this and the checkmark will be highlighted for selected day. put this in cellForRowAtIndexPath
if([Day isEqualToString:selectedDay])
{
cell.accessoryType=UITableViewCellAccessoryCheckmark;
}
Madan Mohan
2010-09-27 13:00:31
i can't figure out what Day's supposed to be and what selectedDay's supposed to be
Nico
2010-09-27 13:16:34
day is nothing but the list of days you dispalyed and selected day means the day you selected, I assumed them as NSStrings.
Madan Mohan
2010-09-27 13:33:35