开发者社区> 问答> 正文

UITextView中粘贴长文本

如何在UITextView中粘贴长文本?现在我只要一将数据粘贴到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.";

这是报错的代码。

展开
收起
爵霸 2016-03-17 13:52:33 2152 0
1 条回答
写回答
取消 提交回答
  • 在下一行不要用文本,在新文本行使用'n'

    2019-07-17 19:05:16
    赞同 展开评论 打赏
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载