You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Read More added in the first line , but my condition was to add it after the 3rd line.
This happens after you only reload 1 cell in the table view , then the next cell after that automatically shows "read more" for 1 line text only.
The text was updated successfully, but these errors were encountered:
frame.size.width is different for each reload of tableView. Instead of frame.size.width, I declared a new constant variable:
let constantWidth: CGFloat = (UIScreen.main.bounds.width - 50)
and replaced it with all "frame.size.width". Now, when I set numberOfLines, it works perfectly.
Read More added in the first line , but my condition was to add it after the 3rd line.
This happens after you only reload 1 cell in the table view , then the next cell after that automatically shows "read more" for 1 line text only.
The text was updated successfully, but these errors were encountered: