1

To make my app more responsive I want to set the height of my label to expand it over the full cell.

It's now this: https://blazor.nl/uploads/get/cd6a93c852623266882afce5b480b804/IMG-0296

How can I do this?

My label is cell.textLabel.text = [NSString stringWithFormat:@"%@", [self.alerts objectAtIndex:indexPath.row]];

Thanks

tadman
  • 208,517
  • 23
  • 234
  • 262
Anoniem
  • 17
  • 7
  • Possible duplicate of [Multiple lines of text in UILabel](https://stackoverflow.com/questions/990221/multiple-lines-of-text-in-uilabel) – nyanev Jun 20 '17 at 20:07

1 Answers1

0

You need to set the number of rows 0.

cell.textLabel.lineBreakMode = NSLineBreakByWordWrapping;
cell.textLabel.numberOfLines = 0;
nyanev
  • 11,299
  • 6
  • 47
  • 76