Skip to content

Instantly share code, notes, and snippets.

@abbeyjackson
Last active September 13, 2015 04:54
Show Gist options
  • Save abbeyjackson/2da02a928046873d010f to your computer and use it in GitHub Desktop.
Save abbeyjackson/2da02a928046873d010f to your computer and use it in GitHub Desktop.
However, be careful with cell layer properties such as ​`cornerRadius`​ or ​`maskLayer`​ because it could slow your scroll down this would cache the layer as a bitmap and uses the bitmap during the animation instead of keep drawing on every frame change
layer.shouldRasterize = true
layer.rasterizationScale = [UIScreen mainScreen].scale
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment