I have an array filled with dictionaries.
Each dictionary have strings like title, info and date.
Cells in the table are arranged by the date from the dictionary.
What should I do to make it show the cell as active if the date field in dictionary=current date or closest date in the future?
Thanks in advance! I’d really appreciate your help!
I am assuming that you want to somehow highlight the current date. A simple thing would be to select the cell using
[cell setSelected:YES animated:YES]. An other thing would be setting theaccessoryTypetoUITableViewCellAccessoryCheckmark([cell setAccessoryType:UITableViewCellAccessoryCheckmark]). If you don’t like these approaches, you can still create a custom UITableViewCell with support of some sort of highlighting, like showing an arrow in the cell.