Set the priority of the vertical spacing between two labels lower than the vertical spacing between the labels and the top and bottom of the view. Also in your delegate override
- (CGFloat)tableView:(UITableView *)tableView estimatedHeightForRowAtIndexPath:(NSIndexPath *)indexPath
and
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
which will return a height that will correspond to the restrictions and heights of the labels. By default, I think you get 44 pixels, so you can get a higher cell by overriding them. Alternatively, you can set the cell height in IB if you use storyboards or Nibs.
Sandy chapman
source share