iOS子線程更新UI的兩種方法

方法1:performSelectorOnMainThread [self performSelectorOnMainThread:@selector(updateUI:) withObject:image waitUntilDone:NO]; 方法2:dispatch_async(dispatch_get_main_queue(), ^{ ... }) dispatch_async(dispat
相關文章
相關標籤/搜索