-[ display]: Ignoring bogus layer size

前端 未结 6 2380
天命终不由人
天命终不由人 2021-02-19 05:43
-[ display]: Ignoring bogus layer size (255211754908294243945860531626574872576.000000, 340282346638528859811704183484516925440.000000)
         


        
6条回答
  •  我在风中等你
    2021-02-19 06:31

    I believe this is caused because the layer is too large and I expect this will cause issues buffering to an image for drawing.

    I had this problem with a large UIView with relatively simple graphics and solved it by using a CATiledLayer

    To do this, include the following in your UIView subclass to enable tiling:

    + (Class)layerClass {
        return [CATiledLayer class];
    }
    

提交回复
热议问题