Details

It has been a while since I have made a post, so I figured I would take this opportunity to point out that, if you are ever putting together a UITableViewCell (such as in the cellForRowAtIndexPath delegate method), there is a big difference between this:

cell.backgroundColor = [UIColor redColor];

And this:

cell.contentView.backgroundColor = [UIColor redColor];

Or, if you are creating an NSSortDescriptor, there is a big difference between this:

sortDesc = [[NSSortDescriptor alloc] initWithKey:@"sortOrder" ascending:YES];

And this:

sortDesc = [[NSSortDescriptor alloc] initWithKey:@"sortOrder" ascending:YES
                selector:@selector(localizedCaseInsensitiveCompare:)];

Happy Nigel Tufnel day and Last Binary Day Of This Century (11/11/11) to everyone!

Leave a Reply