UITextView is not showing long text - ios

I have an UITextView inside a UIScrollView. The textView display correctly when text is not too long.
But when text is long long, it is not showing text in textView. However, the textView is still selectable.
Here is my layout.
Thank you so much!

I had the same problem displaying very long text (33745 chars) in a UITextView and after experimenting with different copy lengths the limitation is with the simulator. If the number of chars was over 7435 the simulator did not show the text but I could scroll, copy etc.
But testing on several devices, the 33745 chars text displayed correctly.

Just say
yourTextView.scrollEnabled = YES;
and see the magic

Related

UITextField cursor scrolling

I have a UITextField that is programmatically created. I face the problem where my last character is not shown if the text exceeds the length of the textfield.
How can I show the last character entered and shift the text to the left?
It all works perfectly fine for my other UITextFields created in storyboards. I couldn't find an answer for the question.
Also, it I need to use textField not textView because I would have to change a lot of things.
Thanks!

UITextView lineBreakMode not working after setting exclusionPaths

I've a UITextView, contain texts(very long) and a few UIImageView. Every imageView can be move/rotate/resize. All text in this UITextView line-break-mode is NSLineBreakByWordWrapping
Before insert images, the text line-break-mode works fine.
After insert image/images, move/rotate/resize the imageView, I'll reload the exclusionPath, but this time, the line-break-mode doesn't work. When image closer to left or right side, it'll separate the text character-by-character, not word-to-word.
I've been try lots of methods, still not fixed. I've checked Apple's demo, they have this issue too.
Anyone can help?

iOS - UITextView pasting weird behavior

I have an expandable UITextView, everything works fine except pasting. If the text pasted is longer than maximum height expected. I dont see some part of the text. Only happens with Pasting, and only when the text is longer than maximum height. Does anyone have any idea what I am doing wrong?

How to resize the UITextField in IOS

- How to increase the height of the text field in order to accommodate multiple lines, as the text field grows accordingly.
- I want something like multiple line attribute in android.
UITextField not supporting multiple lines text place UITextView in the place of UITextField.
Look at UITextView and not a UITextField.
Use HPGrowingTextView for iOS for multiple lines textview

iOS Button Text Localization - do you have to do the whole xib file?

I'm working on getting an iOS app translated into Russian. All is going well except for the text on buttons.
It seems like the size of the English text defines the size that the Russian text can fit into. Since most of the Russian text is longer, it is getting cut off even though the button has plenty or empty space to the right of this text.
I've set the text on the buttons inside the viewWillAppear method. Is there a better way to handle this, or does the whole xib file need to be localized?
Have you looked at the button's autosizing settings? That would be the most likely cause of cut-off text with space to spare in the button. You can set the autosizing attributes in Xcode or programmatically with UIView::autoresizingMask.
You should not need to localize the XIB if you're setting the text in code. Autosizing should fix the issue.

Resources