gpt4 book ai didi

iphone - 如何在 UITextView 中粘贴长文本

转载 作者:可可西里 更新时间:2023-11-01 05:01:32 34 4
gpt4 key购买 nike

我如何在 UITexView 中粘贴长文本,因为我有静态文本数据。如果我尝试直接粘贴到 textView.text,它会显示错误。如何管理。请指导。提前致谢。

txtView.txt = @"About us

myventr.co is a web-based tool for event creation, event searching and online ticket selling whilst also serving as a social media network. myventr.co is not just about creating events and buying tickets online but is also a place for you to socialise. You can create your own profile, connect with friends or create your own group for your organisation!

How is this different to other social media websites then? Myevent is about connecting people’s social lives and events all at the same place. myventr.co will help find all the event details around your location and will also help avoid events clashing by simply searching the Event Calendar before creating an event.";

上面是我正在尝试的方式。

最佳答案

不要在下一行使用文本,而是使用 '\n' 换行。

关于iphone - 如何在 UITextView 中粘贴长文本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17808243/

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