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

Make TextRow Title Multiline or in Two Lines #2175

Open
amsubhan opened this issue Aug 31, 2021 · 4 comments
Open

Make TextRow Title Multiline or in Two Lines #2175

amsubhan opened this issue Aug 31, 2021 · 4 comments

Comments

@amsubhan
Copy link

I have a use case in which my title is for text row is large and it almost covers more than half of the screen. I want to ask that how can I make my title of TextRow in two lines?

Thanks!

@onuryurtturk
Copy link

Have you tried this? 'cell.textLabel.numberOfLines = 2'

@amsubhanTV
Copy link

Have you tried this? 'cell.textLabel.numberOfLines = 2'

Yes I have tried this and set it 0 but it still shows in one line

@LeXuanKhanh
Copy link

LeXuanKhanh commented Sep 23, 2021

try to set up a custom row, the default TextRow title doesn't support multiline text

@iadwait
Copy link

iadwait commented Sep 26, 2024

@amsubhan @amsubhanTV
To do this make sure you also add \n in your title string otherwise numberoflines parameter won't consider it.

Example Code:
Screenshot 2024-09-26 at 3 49 04 PM

Output:
Screenshot 2024-09-26 at 3 49 42 PM

Hope this fix your issue.

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

5 participants