안녕 얘들 아 NSMutableArray에서 미리 계산 된 셀을로드하는 UITableView 있습니다. 나는 부드러운 스크롤을 사용할 수 있도록 사용자 인터페이스를 업데이트 할 NSOperationQueue 또는 PerformSelectorOnMainThread을 사용하고 싶지만 내가 오류가 ...이 NSOperationQueue를 사용하여 UITableViewCell로드하기
- (UITableViewCell *)tableView:(UITableView *)aTableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
//queue is being initialized in viewDidLoad
[queue addOperationWithBlock:^ {
[[NSOperationQueue mainQueue] addOperationWithBlock:^ {
NSLog(@"Updating...");
return [self.CellObjects objectAtIndex:indexPath.row];
//if you remove the line above with the return, NSOperationQueue will work but I need the above line to load the cell.
}];
}];
}
는 그것이 작동되도록하는 방법이 있나요 ... 내 코드? 어떤 도움을 주셔서 감사합니다!
어떤 오류가 발생합니까? – CRDave
오류는 블록 반환 무효입니다 UITableViewCell – stefanosn