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?
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
Post a Comment