开发者

CATiledlayer distortes CGPath

开发者 https://www.devze.com 2023-02-20 23:33 出处:网络
I am using CATiledlayers and UIScrollviews to draw CGPaths at different levels of detail. I am drawing big pictures (4000x4000). On the iPhone the image gets distorted for these large pictures.

I am using CATiledlayers and UIScrollviews to draw CGPaths at different levels of detail. I am drawing big pictures (4000x4000). On the iPhone the image gets distorted for these large pictures.

I have finally found a solution. My mistake was that I set the tileSize to the size of the image I was drawing (copied fro开发者_Go百科m a PDF sample demo somewhere). The solution is to set the tileSize to a max of 2000x2000.


Apple confirmed this was a bug when this was posted

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号