开发者

ios programming using uitextview as text editor

开发者 https://www.devze.com 2023-04-08 03:41 出处:网络
I\'m developing an application for ipad that works like a text editor where you can input text without any limitations into a uitextview. However the problem I have is that after a while when the text

I'm developing an application for ipad that works like a text editor where you can input text without any limitations into a uitextview. However the problem I have is that after a while when the text gets quiet large (about 20 pages) there is big lag when entering new characters. Is this a problem related to uitextview that can't handle large texts or is this just a limitation based on ipad hardware. Should I be using som开发者_开发技巧ething else instead of an uitextview to input text? Thank you.


you may try to cache in and out the UITextView yourself, then it will certainly become faster. I do not know any other object that is more suitable, since all the editing methods are already there.


Maybe split things up into multiple UITextViews if the text gets too long?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号