Wednesday, January 8, 2014

UITextView Scroll-to-Typing Bug

Brent Simmons:

The caret is hidden. Type any other key and it un-hides. But I really, really want the caret to be not hidden right then.

Brent Simmons:

So I went through all the help I got on Twitter and tried different things. The only things that worked reliably were the solutions that involved adding a delay before scrolling.

[…]

So this is an opportunity to talk about when to use hacks like this. The short answer is never. I hate doing things like this and I can go years in between.

But the important thing is the quality of the user experience. Nothing else matters.

Update (2014-01-09): Peter Steinberger:

To enable these fixes, simply use PSPDFTextView instead of UITextView

Comments RSS · Twitter

Leave a Comment