Joris
Joris

Reputation: 6305

Why is the text in my UITextView transparent until I press enter?

This is the configuration of my textview

When I start typing in it I get this:

Until I press the return key, then I get this:

Has anybody got an idea as to why this happens? This is in iOS6, on the iPad, both in the Simulator as on the device

Upvotes: 2

Views: 760

Answers (2)

user1820312
user1820312

Reputation: 1

Try this:

textView.frame = textView.frame;

Upvotes: 0

Joris
Joris

Reputation: 6305

This one contained the answer: UITextView width greater than 512 doesn't show text

It seems that disabling the "flexible width" in the resize options of the UITextView solves the problem. Clearly a bug in UIKit methinks.

FYI my textview is 504 pixels wide.

Upvotes: 4

Related Questions