Is it possible to extract the string content of a specific line in a UITextView? Thanks.
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.
Finding the content of a line in UITextView can only be solved through an extremely expensive process of iteration using the “sizeWithFont” methods. It could be done for a static page, but is not suitable for content that appears in a scrollview or tableview.