Rasterize the cell layer to increase scrolling performance

This commit is contained in:
Cameron Gutman 2015-11-10 20:48:39 -08:00
parent f72135c227
commit c8441ec9fa

View File

@ -44,6 +44,10 @@
self.frame = CGRectMake(0, 0, noImage.size.width, noImage.size.height);
[_appOverlay setCenter:CGPointMake(self.frame.size.width/2, self.frame.size.height/6)];
// Rasterizing the cell layer increases rendering performance by quite a bit
self.layer.shouldRasterize = YES;
self.layer.rasterizationScale = [UIScreen mainScreen].scale;
return self;
}