gpt4 book ai didi

ios - 如何停止将超链接移动到新行 UITextView

转载 作者:行者123 更新时间:2023-11-28 16:15:51 24 4
gpt4 key购买 nike

我在使用 UITextView 时遇到了一个小问题。我有一个 UITextView 可以检测所有内容。当没有空间容纳超链接时,它会将其移至新行。

enter image description here

我怎样才能阻止它?我想让超链接在同一行上,只要它适合如下所示

enter image description here

最佳答案

试试这个,它有效选择TextView文本属性和换行方式为字符换行

enter image description here

输出: enter image description here

希望对您有所帮助。谢谢。

关于ios - 如何停止将超链接移动到新行 UITextView,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39098268/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com