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 […]