ios - UITextView scrolls up after "Speak" -


i have non-editable uitextview display text. users can select text in uitextview , choose ios "speak selection" functionality (speak button) read them. however, when 'speak' done reading last word, scrolls uitextview. in fact, if select last word in text, , choose 'speak', scrolls uitextview.

i have scrollenabled set no, editable set no, , text nsattributedstring.

how can stop uitextview scroll in case?

screenshot same

i can't comment reputation, unfortunately don't have real answer workaround; far mine intercept [uitextview setcontentoffset:animated] via method swizzling (http://nshipster.com/method-swizzling/) , avoid calling original method when needed (this method called quickspeak function). guess subclassing cleaner if can instantiate view (this not case).


Comments

Popular posts from this blog

Why can rails not find a route created by a helper? -

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -