我有非常简单的UIStackView
,有几个按钮。每次我在iPad上运行应用程序时都会收到此警告:
<CATransformLayer: 0x147563bc0> - changing property magnificationFilter in transform-only layer, will have no effect
问题CATransformLayer
(lldb) po 0x147563bc0
<CATransformLayer:0x147563bc0; position = CGPoint (358 160); bounds = CGRect (0 0; 100 316); delegate = <eyeq.RightOverlayButtonStack: 0x147528390; baseClass = UIStackView; frame = (308 2; 100 316); layer = <CATransformLayer: 0x147563bc0>>; sublayers = (<CALayer: 0x147527de0>, <CALayer: 0x14753cbc0>, <CALayer: 0x147544500>, <CALayer: 0x147546870>, <CALayer: 0x147548a70>); allowsGroupOpacity = YES; opacity = 1; magnificationFilter = nearest>
属于UIStackView
(lldb) po 0x147528390
<xxx.RightOverlayButtonStack: 0x147528390; baseClass = UIStackView; frame = (308 2; 100 316); layer = <CATransformLayer: 0x147563bc0>>
如何摆脱这种警告?顺便说一下,我使用Xcode 8和Swift 3。