How to check if Label is truncated in Xamarin iOS?
In my app, Label will usually be quite long, so I have set Maxlines to 5 and Linebreakmode to TailTruncate, resulting in the end of Label there will be "...". However, I still want to add the text "Read more" below this Label, so I need to know when the Label is truncated to show the "Read more" text (otherwise I will hide it).
I did it on Android by using the "GetEllipsisCount" method for the last line.
I hope you can help me make it for iOS.
P/S: sorry about my English.
There is a solution about Xamrin.forms, it runs on Android Emulator, It also applies to iOS, you could check it, I'm not sure if it is the effect that you want.
Sign in to comment