Welcome, Guest
Username Password: Remember me

Resizing the label for a cell.
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Resizing the label for a cell.

Resizing the label for a cell. 1 year, 3 months ago #1

After I've added a cell to a section and it's being displayed I need to change the text.

I can do that using:
cell.textLabel.text=@"new text"

but the cell doesn't change the size of the label when I do so I get the dreaded three dots at the end of the text.

What's the 'accepted' way to change the text of the cell so the label size is re-calculated?

PS. I should mention that the cell is a plain, old SCTableViewCell which I use only to display text so I can intercept its index at tableViewModel:idSelectRowAtIndexPath: and then go of and carry out an action.
  • oldbeamer
  • OFFLINE
  • Junior Boarder
  • Posts: 37
  • Karma: 0
Last Edit: 1 year, 3 months ago by oldbeamer.

Re: Resizing the label for a cell. 1 year, 3 months ago #2

  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72
  • Page:
  • 1
Time to create page: 0.66 seconds