Skip to main content

Posts

Showing posts with the label correctness

UITableView…the correct way

I'm trying to make a UITableView like the native calendar app: but I'm trying to learn the best way to do this. I'm able to get this for the most part with a switch statement in the cellForRowAtIndexPath method, but I'm having troubles changing the textColor when a cell is selected. For some reason cell.isSelected is always NO, and I have no way to reload the tableview after another cell is selected anyway. Should I subclass UITableViewCell for something this simple and store an array of cells? Any help would be appreciated, thanks.