You know how, if you have a UITableView with only a few entries, how the divider lines for the empty (non-existent) cells still show up? This happens to me every once in a while, and every time I always have to go look up the solution. Well in case you’re wondering, it’s as easy as one line of code:
mTableView.tableFooterView = [[[UIView alloc] initWithFrame:CGRectZero] autorelease];
And that’s it. Happy coding!
Leave a comment