【问题标题】:Screenshot of iCarousel/CATransform3D in iOSiOS中iCarousel/CATransform3D的截图
【发布时间】:2012-12-03 16:12:29
【问题描述】:

因此,Apple 不再接受使用未记录 API UIGetScreenImage 的前一种方法 (Blog-post on UIGetScreenImage)。

推荐的 CALayer renderInContext 方法不适用于 iCarousel 中使用的 3D 动画。

目前是否有任何允许的方法将我的 iCarousel/CATransform3D 形式的视图转换为 UIImage? 也许有从 CATransform3D 到 CGAffineTransform 的转换(我知道这通常是不可能的,因为 CATransform3D 有更多的维度,但是在典型的 iCarousel 的特殊情况下,不使用 CATransform3D 的完整 3D)

【问题讨论】:

    标签: iphone ios screenshot calayer catransform3d


    【解决方案1】:

    对此进行了彻底测试,最终仅使用 CGTransforms 创建了我自己的(简单)轮播。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-01-10
      • 1970-01-01
      • 1970-01-01
      • 2023-03-17
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多