CATransformLayer :更改仅变换层中的属性 maskToBounds,将不起作用 [英] CATransformLayer : changing property masksToBounds in transform-only layer, will have no effect

查看:25
本文介绍了CATransformLayer :更改仅变换层中的属性 maskToBounds,将不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 Xcode 7 和 swift 2.

I'm using Xcode 7 and swift 2.

在我的 iPad Air,iOS 9.1 上,当键盘出现时,调试控制台上会抛出错误

On my iPad Air, iOS 9.1, when the keyboard appear, an error is throw on the debug console

2015-10-28 13:07:35.114 Note[73896:6954126] <CATransformLayer: 0x7a2dc070> - changing property masksToBounds in transform-only layer, will have no effect
2015-10-28 13:07:35.115 Note[73896:6954126] <CATransformLayer: 0x7a2dd090> - changing property masksToBounds in transform-only layer, will have no effect
2015-10-28 13:07:35.115 Note[73896:6954126] <CATransformLayer: 0x7a035df0> - changing property masksToBounds in transform-only layer, will have no effect

这是苹果的错误吗?

这似乎是 Applen 的一个错误,有人单独解决了吗?

It seems to be a bug from Applen anyone had resolved it alone ?

推荐答案

不确定这是否适合您,但似乎错误来自在 UIStackView 上的 IB 中的模式设置(缩放以填充,方面适合等)将其更改为方面适合会返回此错误并检查剪辑到子视图.

not sure if this will work for you but appears that error comes from playing with the mode setting in IB on a UIStackView (scale to fill, aspect fit etc) changing it to aspect fit returns this error as well as checking clip to subviews.

希望有帮助!

这篇关于CATransformLayer :更改仅变换层中的属性 maskToBounds,将不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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