如何在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.";
這是報錯的代碼。
在下一行不要用文本,在新文本行使用'\n'