Offscreen UITextView invisible / clear text in iOS 5

I have an off-screen instance of UITextView loaded from a tip that moves to the screen frame when the user clicks the comment button. Any text that uses input is invisible. If the user rotates the device, text appears.

I tried throwing setNeedsDisplay and setNeedsLayout, as well as setting the text, textColor and font properties after it appeared on the screen with no luck.

I have an example Xcode project demonstrating an error.

Any suggestions?

+5
source share
4 answers

, , UITextView, .

, BOOL ivar , ( ).

+2

, UITextView , . , .

UITextView *aTextView = [[UITextView alloc] initWithFrame:CGRectMake(20, 89, 684, 441)];
[aTextView setFont:[UIFont systemFontOfSize:17.0]];
[addCommentView insertSubview:aTextView atIndex:1];
[self setCommentTextView:aTextView];
[aTextView release];

!

+1

- iOS5-SDK . , -, ​​ GM- iOS5.

0

SDK iOS5. ?

- iOS5. , , .

-3

All Articles