调整 CATransform3D参数:
var iTrans = CATransform3DIdentity
关键属性: iTrans.m34 = -1/500.0
并且如果z轴如果需要不止是前后遮挡的关系,实现真正的z方向深度:需要将layer加到CATransformLayer 类型的layer上才能实现,否则z轴对深度没影响,只影响遮挡关系。
测试代码: Supprt3DRotation
调整 CATransform3D参数:
var iTrans = CATransform3DIdentity
关键属性: iTrans.m34 = -1/500.0
并且如果z轴如果需要不止是前后遮挡的关系,实现真正的z方向深度:需要将layer加到CATransformLayer 类型的layer上才能实现,否则z轴对深度没影响,只影响遮挡关系。
测试代码: Supprt3DRotation
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
Your article helped me a lot, is there any more related content? Thanks!
Your article helped me a lot, is there any more related content? Thanks! https://accounts.binance.com/ro/register?ref=V3MG69RO