Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

fenrus110

macrumors regular
Original poster
Mar 24, 2008
142
0
There seems to be a universal problem with text disappearing from a textview when used within a scrollview. I've seen other posts talk about text vanishing from a UITableView, I guess since UITableView uses a UIScrollView...

Easiest way to demonstrate this is to grab the PageControl sample from Apple, change the UILabel to a UITextView. When you load it, you'll see Page 1. When you scroll over, Page 2 and onward will be blank. If you go back to Page 1, you can still see it. BUT! If you tap on the UITextView on Page 2+, the text will magically appear when the keyboard pops up.

I've tried doing it in both Interface Builder and raw hand coding, but the problem still persists.

I'm suspecting that there is some sort of shared variable that we can't see in the implementation. UITextView seems to have a lot of bugs, but I have to use it... Anyone know of a hack or solution so the text will appear the way it should?

I found a thread here about it, but not much of a conclusion...
http://discussions.apple.com/thread.jspa?messageID=7983880
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.