Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read More added in the first line #64

Open
hahuja opened this issue Aug 31, 2018 · 3 comments
Open

Read More added in the first line #64

hahuja opened this issue Aug 31, 2018 · 3 comments

Comments

@hahuja
Copy link

hahuja commented Aug 31, 2018

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.

@harishprabhakaran
Copy link

Did u find solution?

@harishprabhakaran
Copy link

its working fine with setting textReplacementType to .character

@bilalbakhrom
Copy link

bilalbakhrom commented Jan 23, 2019

I found the solution.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants