Using the CATransformLayer warning: changing a property is opaque in the layer for conversion only, will have no effect

I created a subclass of < TransformView UIViewto support the two-way representation that I use in flip animation. This has been suggested in other posts, for example:

How to rotate a flat object around its center in perspective mode?

@interface TransformView : UIView
@end

@implementation TransformView
+ (Class)layerClass {
  return [CATransformLayer class];
}
@end

Everything works fine, but I get a warning every time I create a TransformView object using:

TransformView *newTransformView=[[TransformView alloc] initWithFrame:frame];

The warning reads:

- a change in property that is opaque in the transforming layer will not have an effect

I think the class UIViewinitializes an opaque property, which is usually fine for CALayer, but not CATransformLayer.

? , 2- -?

, ?

, TransformView nib, initWithFrame , , , , .

+5
1

, - :

@implementation CATransformLayer (MyExtension)
-(void)setOpaque:(BOOL)opaque
{
    return;
}
@end

, CATransformLayer.

+3

All Articles