似乎该函数调用[self updateUI]; 被嘘声阻止。
boo是在另一个后台线程中运行还是与下面的代码中的foo相同?
[self updateUI]怎么可以;不被嘘?
- (void)MainFunction
{
[self performSelectorInBackground@selector(foo) withObject:nil];
}
- (void)foo
{
[self performSelectorInBackground@selector(boo) withObject:nil];
//updaate UI in MainThread
[self updateUI];
}
- (void)boo
{
//function here take long time to run;
}