简体   繁体   English

CATiledlayer扭曲CGPath

[英]CATiledlayer distortes CGPath

I am using CATiledlayers and UIScrollviews to draw CGPaths at different levels of detail. 我正在使用CATiledlayers和UIScrollviews在不同的细节级别绘制CGPath。 I am drawing big pictures (4000x4000). 我正在绘制大图片(4000x4000)。 On the iPhone the image gets distorted for these large pictures. 在iPhone上,这些大图片的图像会失真。

I have finally found a solution. 我终于找到了解决方案。 My mistake was that I set the tileSize to the size of the image I was drawing (copied from a PDF sample demo somewhere). 我的错误是我将tileSize设置为正在绘制的图像的大小(从某处的PDF示例演示复制)。 The solution is to set the tileSize to a max of 2000x2000. 解决方案是将tileSize设置为最大2000x2000。

苹果在发布此消息时确认这是一个错误

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM