“changing property masksToBounds in transform-only layer, will have no effect” in Xcode 7

爷,独闯天下 提交于 2019-11-27 09:09:57

问题


I am receiving this warning in the debugger console when I launch my app on iPad Xcode 7 beta 6. There was no such warning till Xcode 6. I don't understand why it may have come and that too, only on iPad.

According to an Apple forum thread it could be a bug from Apple's side. Has anyone found a solution for this?


回答1:


In order to get rid of this error un check clip to bounds option and put scale to fill to view to all view,UIStackView you have used in your project.




回答2:


This is a bug in iOS, and still exists in the latest version, iOS 9.1. If you're reading this, please do us all a favor and file a bug report with Apple.

You may duplicate my radar (id: 23666339), which can be viewed on Open Radar here: https://openradar.appspot.com/23666339

The bug causes the keyboard to take forever to appear, and exists only on iPad as well as the iPad simulators.

UPDATE: This issue has been resolved as of iOS 9.2 (13C75).




回答3:


It could happen because you changed drawing attribute of the StackView:

when I set clips to bounds to true I get this warning



来源:https://stackoverflow.com/questions/32456727/changing-property-maskstobounds-in-transform-only-layer-will-have-no-effect-i

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!