I have text like this: “My text is blabla blabla, lala lala “.
I would like to have the text in my UILabel like this: “My text is …lala”.
How can I configure my UILabel to display the text to have the ellipsis in the middle?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The word you are looking for is “ellipsis” 😉
Set the following properties:
You can also set these properties in interface builder.
Example stolen from here:
Getting UILabel to produce an ellipsis rather than shrinking the font
UPDATE:
This was deprecated in iOS 6. The current solution would be the slightly modified: