The sizeToFit
method of UILabel
doesn't apply in cellForRowAtIndexPath
.
The problem is I need some of my cells to look like this:
and others to look like this:
What's the solution for this?
Thanks
The sizeToFit method does what it is supposed to do in the cellForRowAtIndexPath method after disabling auto layout in the storyboard.