I am drawing a set of images on a uiscrollview from a non-ui stream / function. But it is displayed only after all the images are done by drawing. To write all the images, I wrote a function, and this is what is called a non-ui stream. I wrote this line inside a function
[self performSelectorOnMainThread:@selector(updateUI) withObject:nil waitUntilDone:NO];
And wrote the function below
- (void)updateUI
{
[myScrollView setNeedsDisplay];
}
But this has no effect, even when I see that the control is being passed to this function. What will we do?
source
share