-[< CALayer:0x5584190>显示]:忽略虚假的图层大小 [英] -[<CALayer: 0x5584190> display]: Ignoring bogus layer size

查看:64
本文介绍了-[< CALayer:0x5584190>显示]:忽略虚假的图层大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

-[<CALayer: 0x5584190> display]: Ignoring bogus layer size (255211754908294243945860531626574872576.000000, 340282346638528859811704183484516925440.000000)

有人可以告诉我这个警告是关于什么的吗?该应用在显示此错误的某些设备上崩溃.

Can any one please tell me whats this warning about? The app is crashing on some devices showing this..

任何建议都会很有帮助.

Any suggestion would be greatly helpful.

推荐答案

我认为这是由于图层太大而引起的,我希望这会导致缓冲图像以供绘制的问题.

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

我在使用相对简单的图形的大型UIView时遇到了这个问题,并通过使用CATiledLayer解决了该问题

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

为此,请在UIView子类中包含以下内容以启用平铺:

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

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

这篇关于-[&lt; CALayer:0x5584190&gt;显示]:忽略虚假的图层大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆