I am drawing a complex view in my background queue and then add it as a subview to my collection view's content view, but it takes forever to do so.
Here's my code:
[self.drawingOperationQue addOperationWithBlock:^{
ObservationViewSmall *observationSmall = [[ObservationViewSmall alloc] initWithFrame:CGRectMake(0, 0, 408, 332)];
[observationSmall initViewWithObservation:[self.childObservationArray objectAtIndex:indexPath.row]];
cell.userInteractionEnabled = YES;
[[NSOperationQueue mainQueue] addOperationWithBlock:^{
[cell.contentView addSubview:observationSmall];
}];
}];
Any help is more than welcome.