-
Does setting shouldRasterize to a CALayer apply the same behavior to its subLayers?
-
My app animates the main UINavigationController in order to display a menu which is hidden behind the UINavigationController. Is it a bad idea to set rasterizing for every layer of my ViewControllers?
Does setting shouldRasterize to a CALayer apply the same behavior to its subLayers? My
Share
ShouldRasterize is a property of CALayer, not UIView, and yes, it does affect sub-layers.
Rasterization draws things offscreen and then composites them onscreen, which is beautiful and extremely useful for shadows, otherwise it’s not that useful.