An In-Character Programme
Last summer, I was producer for Grosvenor Light Opera Company’s production of Pirates of Penzance. For those that don’t know, most of the female roles in the play comprise Major-General Stanley’s adopted daughters. In many productions, they tend to be depicted as twittering Victorian maidens, all petticoats and parasols. We didn’t want that.
Using auto-layout to calculate table cell height
Table cell height is one of the tricky bits of UITableView. You have to calculate it manually, in advance of creating your cell. Here’s a method that uses auto-layout to help you calculate it.
First of all, you’ll need a cell with its content laid out with auto-layout. The easiest way to make one is to use a xib file. Make a new xib file with only one object (a table cell) inside. Add whatever subviews you want to your table cell, and lay them out with auto-layout.