问题
I have a large image managed with CATiledLayer (like the Large Image Downsizing iOS sample code).
I had a drawing view (UIView overrided with drawing methods) on it but when I zoom a lot, I get the following message and my view disappeared..
-[<CALayer: 0xb253aa0> display]: Ignoring bogus layer size (25504.578125, 15940.361328)
Is there a way to avoid this ?
回答1:
Sounds like the levelsOfDetail and levelsOfDetailBias you are setting are allowing for more zoom than the tiled layer should allow given the max layer size allowable for the layer. Try changing those to lessen how much the user can zoom.
Here is a great article explaining some of the undocumented behavior of CATiledLayer.
来源:https://stackoverflow.com/questions/14023797/calayer-and-view-disappeared