Tag: 大中央派遣

UITableViewCell textLabel,在使用GCD时不会更新,直到滚动或触摸发生

有人可以帮我解决这个问题吗? 我的UITableViewCell textLabel ,不会更新,直到我滚动 ,或触摸它。 ViewController加载,它显示适量的单元格 。 但内容是空白的。 我必须触摸它或滚动来使我的textLabel出现。 我在这里做错了什么? – (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier]; } [[cell textLabel] setFont: [UIFont systemFontOfSize: 32.0]]; dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ NSDictionary * data = [self timeForObject: [self.months […]

简单的GCD串行队列例如使用块的FIFO

我阅读苹果的文档如何使用串行队列,以确保任务执行在一个可预测的顺序,但现在我很困惑。 一些如何我能够连续工作,但仍然不清楚,所以我需要我的方法串行执行简单的序列示例。 我把我的function分成了4个部分,现在想让他们执行一下 [self ReadAllImagesFromPhotosLibrary]; [self WriteFewImagestoDirectory]; [self GettingBackAllImagesFromFolder]; [self MoveToNextView];