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!