I’ve been writing a lot of code lately, which means I’ve had no shortage of “learning opportunities” (or, as some people call them, bugs):
- Yesterday I enjoyed learning how to debug an autorelease pool using malloc_history.
- Monday I gained a deeper understanding of how Quartz strokes a path and why it would cause your rounded rectangles to become fuzzy at the corners (if you don’t account for the stroke width).
- Tuesday I discovered that keeping around a UITableViewCell for resizing calculations can be handy but error-prone. Hint: if your table view is re-using cells, then your re-sizing calculation code better not depend on the cell’s contents remaining constant between calls.