Re: UITextView Doesn't seem to function
Re: UITextView Doesn't seem to function
- Subject: Re: UITextView Doesn't seem to function
- From: Development <email@hidden>
- Date: Thu, 16 Jul 2009 22:23:04 -0700
Ok google showed me a couple articles on how textviews within
scrollviews dont work right.
so I tried to implement a bit of code but it still didnt work and I
had to move the text view so that it was on the view screen from the
start. That really cramped the style of the interface but for now its
the only fix that seems to work. I tried what's below and also just
plain [about setNeedsDisplay] in the delegate method below and no
luck... Very frustrating.
-(void)scrollViewDidScroll:(UIScrollView*)scrollView
{
for (UIView *childView in about.subviews)
{
[childView setNeedsDisplay];
}
for (UIView *childView in onlineAbout.subviews)
{
[childView setNeedsDisplay];
}
}
On Jul 16, 2009, at 8:17 PM, Scott Thompson wrote:
On Jul 16, 2009, at 9:09 PM, Development wrote:
Actually its a UITextView, it is linked in IB and when I
NSLog(@"%@",about.text) it shows me that it has the string stored
in the object, however it is not updating the onscreen view.
Make sure that your text view is large enough to show the size of
text that you are displaying in it. Otherwise the word wrap might
be causing the text to seem to disappear.
If necessary, make your text view too big just to make sure that the
text is showing.
Also make sure that the text color of the view is not white.
Scott
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden