I am trying to make a messaging app. I have a tableview where i have to add all the messages from JSON webservice. I am using a custom class inherited from UITalbeViewCell for custom cells.
I dont have any nib file with this custom class. I only make the object of this class and set its message label text and return as cell in "cellForRowAtIndexPath" delegate method.
Now i am facing a problem that custom class returns perfect layout message cell according to the length of the message and its height is also perfect but when this cell get adds in UITableView the height of the row is not automatically set to the height of the custom cell so thats why larger text cells get overlapped. Please help me in this regard that how i can set the height of the custom cell.
You can see the error image where cells are overlapped