I ended up having to do something similarly as bad for performance
-(void)viewDidScroll
{
        NSString* placeHolder= myTextView.text;
        myTextView.text =@"";
        myTextView.text =placeHolder;
}


can we say bumpy scroll.

Once I get a few other bugs worked out I'll redo this to trigger when the scroll view's visible region and the textview frame are intersecting.

On Jul 27, 2009, at 3:47 PM, Info wrote:

Hi,

I run into the same problem with an app for that I decided to set up my view controllers / views as singletons (and therefore to reuse them).

Views within a scroll view display their previous values if they become a new value assigned when they are scrolled off (screen or scroll view bounds - I can't tell).

A fix (very bad for performance) is to set up the view controller as a delegate for the scroll view and to do somethings like this:

-(void) viewDidScroll {
  myTextView.frame=myTextView.frame;
}

It's a bug in UIKit a I always wanted to file but didn't do...

Markus

On 27.07.2009, at 20:10, Development wrote:

I asked about this earlier and no one seemed the know the answer.
I have a UITextView inside of a scroll view. The textview is offscreen when the main view loads. So it does not update when data is loaded in to it. Thus when ever the scroll it is inside moves I use a standard scrollview delegate method to detect the scroll. Then execute the code below.

        if(scrollView == miniScroll){
                for (UIView *childView in onlinePeopleView.subviews)
                {       
                        [childView setNeedsDisplay];
                }
        }

This does not work. setNeedDisplay does not cause it to update and display the text inside of the textview. What can I do to cause the text to be displayed? Everything else is set up correctly in IB and the text size is unaltered. So I know its none of that. If I NSLog() the contents of the text view it shows that the textview is infact imbued with the correct text it simply will not display. How can I force a textview to update it's display?


Thanks
_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/info%40edv-medien.de

This email sent to [email protected]


_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/development%40fornextsoft.com

This email sent to [email protected]

_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to