Posts

Post not yet marked as solved
5 Replies
1.4k Views
Have other developers experienced that a UITextView layout containing more than 100000 (a hundred thousand) characters crashes when you click (or tap) on the text layout? A simple code with a UITextView with 100000 characters works fine if you click (or tap) on the text area, but if there are 100001 or more characters, then a click/tap on the text will immediately crash the app. Note: a "scroll" will always work and the text can be scrolled up and down no matter the number of characters, but a simple click/tap will systematically crash the app. You may think that already handling 100000 characters is a lot, but imagine you enter the entire list of Zip Codes in the USA in your Text View, along with a comma separation, then we have over 300000 characters. This seems a bug as Apple Tech Support asked me to file a bug, then I posted the bug in Apple Developer Feedback Assistant, then I was asked to help them replicate the issue, which I did, but then I haven't received any further update on a workaround solution or a fix in the upcoming iOS 13. Thanks for sharing your thoughts, experience, and if possible, permanent or workaround solution.
Posted Last updated
.