{"id":8289,"date":"2014-01-08T15:21:07","date_gmt":"2014-01-08T20:21:07","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=8289"},"modified":"2014-01-09T21:38:36","modified_gmt":"2014-01-10T02:38:36","slug":"uitextview-scroll-to-typing-bug","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2014\/01\/08\/uitextview-scroll-to-typing-bug\/","title":{"rendered":"UITextView Scroll-to-Typing Bug"},"content":{"rendered":"<p><a href=\"http:\/\/inessential.com\/2014\/01\/07\/uitextview_scroll-to-typing_bug\">Brent Simmons<\/a>:<\/p>\n<blockquote cite=\"http:\/\/inessential.com\/2014\/01\/07\/uitextview_scroll-to-typing_bug\"><p>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.<\/p><\/blockquote>\n<p><a href=\"http:\/\/inessential.com\/2014\/01\/07\/uitextview_the_solution\">Brent Simmons<\/a>:<\/p>\n<blockquote cite=\"http:\/\/inessential.com\/2014\/01\/07\/uitextview_the_solution\"><p>So I went through all the help I got on Twitter and tried different things. The <em>only<\/em> things that worked reliably were the solutions that involved adding a delay before scrolling.<\/p>\n<p>[&#8230;]<\/p>\n<p>So this is an opportunity to talk about when to use hacks like this. The short answer is never. I <em>hate<\/em> doing things like this and I can go years in between.<\/p>\n<p>But the important thing is the quality of the user experience. Nothing else matters.<\/p>\n<\/blockquote>\n<p>Update (2014-01-09): <a href=\"http:\/\/petersteinberger.com\/blog\/2014\/fixing-uitextview-on-ios-7\/\">Peter Steinberger<\/a>:<\/p>\n<blockquote cite=\"http:\/\/petersteinberger.com\/blog\/2014\/fixing-uitextview-on-ios-7\/\"><p>To enable these fixes, simply use <code>PSPDFTextView<\/code> instead of <code>UITextView<\/code>&#8230;<\/p><\/blockquote>","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[131,69,31,469,74,71,591],"class_list":["post-8289","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-bug","tag-cocoa","tag-ios","tag-ios7","tag-opensource","tag-programming","tag-text-kit"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/8289","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=8289"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/8289\/revisions"}],"predecessor-version":[{"id":8304,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/8289\/revisions\/8304"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=8289"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=8289"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=8289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}