Is that possible to remove the dots which are displayed next to uitextfield when text is larger than the width of the uitextfield.
Share
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.
There is a property lineBreakMode which defines the behaviour when the text to be displayed is larger than the box of the control
If you do not want any dots you can use UILineBreakModeClip which simply cuts the text off at the end. The apple doc says this:
Although it of course depends on how you want to display the text. Since either way you cannot display all of the text the dots are usually more asthetic than a raw break.
If you require absolutely all of the text to be visible you must either expand the width of the field, or the height (and use UILineBreakModeCharacterWrap), or possibly decrease the font size (as a last resort).
A quick google search on the subject pulled this How to make UILabel / UITableViewCell to have a dynamic height