How to update UI control (main thread )from worker thread in MOE?

Dear kisg,
I know update UI control from worker thread using objc, like this,
performSelectorOnMainThread,dispatch_async,
but I don’t know how to update UI control from worker thread in MOE, where is the performSelectorOnMainThread,dispatch_async method in MOE.

update UI control using objective c:

[self performSelectorOnMainThread:@selector(updateLabel)
                       withObject:nil
                    waitUntilDone:NO];
dispatch_async(dispatch_get_main_queue(), ^{
    //Do any updates to your label here
    yourLabel.text = newText;
});

thanks!

Hi, I found it,
apple.c.Globals.
MOE is great! so many iOS functions and struct is imported!
Thanks!

2 Likes