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 , , , , .