xcode <CATransformLayer: 0x14fea3710> - 更改仅变换层中的属性 maskToBounds,将不起作用

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/32775575/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 07:56:23  来源:igfitidea点击:

<CATransformLayer: 0x14fea3710> - changing property masksToBounds in transform-only layer, will have no effect

iosobjective-cxcodecalayerxcode7

提问by Daniella D'Cruz

I am getting this warning report in xCode 7.0

我在 xCode 7.0 中收到此警告报告

This happens when i am using MBProgressHUD in my project. How to deal with this warning?

当我MBProgress在我的项目中使用HUD时会发生这种情况。如何处理这个警告?

I saw "changing property masksToBounds in transform-only layer, will have no effect" in Xcode 7but no use...

在 Xcode 7 中看到“在仅变换层中更改属性 maskToBounds,将没有效果”但没有用...

采纳答案by rezwits

In my case this must be related to a keyboard bug. All I have to do is launch an iPad Simulator, and press (CommandKey).

在我的情况下,这必须与键盘错误有关。我所要做的就是启动 iPad 模拟器,然后按 (CommandKey)。

Three errors:

三个错误:

2015-09-29 19:40:47.251 ArchKit[12577:338772] <CATransformLayer: 0x7ff592f12ca0> - changing property masksToBounds in transform-only layer, will have no effect
2015-09-29 19:40:47.252 ArchKit[12577:338772] <CATransformLayer: 0x7ff592d1a2f0> - changing property masksToBounds in transform-only layer, will have no effect
2015-09-29 19:40:47.252 ArchKit[12577:338772] <CATransformLayer: 0x7ff592f25d30> - changing property masksToBounds in transform-only layer, will have no effect

Just by pressing the (CommandKey).

只需按下 (CommandKey)。

Even if I make a starter project with Sprite Kit for instance. So this is a bug.

例如,即使我使用 Sprite Kit 制作了一个入门项目。所以这是一个错误。

回答by Rainer Schwarze

I suggest to ignore the warning.

我建议忽略警告。

In my case I have a little prototype project where I analyze keyboard avoidance. I don't use any animation, and I don't directly change layer properties which would give a reason for the warning. I only change UIScrollView offsets, insets and the like. Yet the warning shows up, so I assume it is something which needs to be taken care of in the SDK. (Or simulator?)

就我而言,我有一个小原型项目,我可以在其中分析避免使用键盘的情况。我不使用任何动画,也不直接更改图层属性,这会给出警告的原因。我只更改 UIScrollView 偏移量、插图等。然而警告出现了,所以我认为这是需要在 SDK 中处理的事情。(或模拟器?)