简体   繁体   中英

How can I stop moving the hyperlinks to new line UITextView

I am facing a minor trouble with UITextView . I am having a UITextView which detects everything. When there is no space to fit the hyperlink, it moves that to new line.

在此处输入图片说明

How can I stop it? I want to have the hyperlink to be on the same line as long as it fits like below

在此处输入图片说明

Try this, it works Select TextView text Attributed and line breaking mode to character wrap

在此处输入图片说明

Output: 在此处输入图片说明

Hope this will help you. Thanks.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM