문제

I'm doing some 3D transforms on a UINavigationController. In an attempt to increase performance and create prettier rendering (antialiased edges and content), I'm trying out -[CALayer shouldRasterize]. When enabling this on the view that UINavigationBar is contained in, the blur is removed, resulting in a broken look.

Is this simply a limitation of the underlying _UIBackdropView or does anyone know a way to work around this?

With myNavigationController.view.layer.shouldRasterize = NO:

Normal

With myNavigationController.view.layer.shouldRasterize = YES:

Rasterized

도움이 되었습니까?

해결책

I still haven't found a way to properly handle this with -[CALayer shouldRasterize]. I did, however, succeed in creating a cached version of the view using the new iOS 7 method -[UIView snapshotViewAfterScreenUpdates:]

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top