I have a UITextview with dynamic data and i have a size with height let’s say 200, how i can crop text in UITextField text to much the height and add “…” to it ?
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.
is this text view supposed to be enabled for input?
if yes, then you shouldn’t be cropping the text
if no, then you could use a UILabel and change the
numberOfLinesto display, and then set thelineBreakModeproperty toUILineBreakModeTailTruncation