Link to home
Start Free TrialLog in
Avatar of privateson
privateson

asked on

Multithreading problem(UI not updated)

Hey, I have a problem in Multithreading.
To describe this, I have two threads.
On main thread I have some logic
And on another thread, I have a logic and some logic to UI which will update UI.
What I want to do is that I want to call some method after the UI on another thread is updated.
I think I am supposed to use NSOperationQueue or something. or background queue.
but I have read the concurrency programming and threading guide and I still have no idea how to do it.

So how to do it so that I can call a method after a thread is finished?
thanks!
Avatar of pgnatyuk
pgnatyuk
Flag of Israel image

Are you looking for -setNeedsDisplay: method?
 [theView setNeedsDisplay:YES];

ASKER CERTIFIED SOLUTION
Avatar of pgnatyuk
pgnatyuk
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial