I am drawing a set of images on the uiscrollview from a non-ui thread/function. But its only displayed after all the images are done drawing. For drawing all the images, I have written a function and that is what is being called as the non-ui thread. I did write this line inside the function
[self performSelectorOnMainThread:@selector(updateUI) withObject:nil waitUntilDone:NO];
And have written the function as given below
- (void)updateUI
{
[myScrollView setNeedsDisplay];
}
But its having no effect even when I can see the control being passed to that function. What to do now?