简体   繁体   中英

CATiledlayer distortes CGPath

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 from a PDF sample demo somewhere). The solution is to set the tileSize to a max of 2000x2000.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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