fix:iOS view blurry after 3D animation
This commit is contained in:
parent
c702f546ee
commit
c9a9cc3227
@ -173,6 +173,8 @@ - (void)transformProperties {
|
|||||||
transform3D = CATransform3DRotate(transform3D, (self.rotationY.floatValue ?: 0) * M_PI, 0, 1, 0);
|
transform3D = CATransform3DRotate(transform3D, (self.rotationY.floatValue ?: 0) * M_PI, 0, 1, 0);
|
||||||
}
|
}
|
||||||
if (!CATransform3DEqualToTransform(transform3D, self.view.layer.transform)) {
|
if (!CATransform3DEqualToTransform(transform3D, self.view.layer.transform)) {
|
||||||
|
self.view.layer.shouldRasterize=TRUE;
|
||||||
|
self.view.layer.rasterizationScale=[[UIScreen mainScreen] scale];
|
||||||
self.view.layer.transform = transform3D;
|
self.view.layer.transform = transform3D;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user