How to make UITextView text really disappear?

My program has a UITextView, and I enter and scroll the text manually:

[myTextView scrollRangeToVisible:NSMakeRange([myTextView.text length]-1, 1)]; 

The text will disappear after a certain amount of input (if the length of the text is> 200) However, when I output the content via NSLog, the text content is still valid and updated every time I enter the text; it just won't display on myTextView

Any suggestions?

+4
source share
2 answers

Same problem:

I have a UIView in which I live and exit the screen after Touch events.

This view has UILabel, UIButton, and UITextView. Somehow the attributes of alpha text, text, and textColor TextViews are all fine if I NSLog them.

EDIT: Text appears that appears after scrolling in a UITextView;

+2
source

Uh, I'm not an i developer, but can't you just set the text to an empty or empty line right after the UIView actually becomes invisible? I'm sure the platform allows you to register a “completed callback” in the animation, which will start when the animation completes the loop.

0
source

Source: https://habr.com/ru/post/1299690/


All Articles