CALayer AnchorPoint missing?
Apple's documentation tells me that if I have a UIView, it has a corresponding Layer property:
UIView *v = ...
v.layer
and the layer property has an anchorPoint property:
v.layer.anchorPoint
but when I try
v.layer.anchorPoint = CGPointMake(0, 0);
anchorPoint is an "Unknown component of a property". It doesn't work either when I say
CALayer *l = v.layer;
l.anchorPoint = CGPointMake(0,0);
and yet there are several examples on the net and Apple's documentation that show that I should be able to do exactly this.
Any idea what I'm going wrong? It seems like something I'm trying to do should be ridiculously easy but this has left me completely baffled.
Many thanks for any help.
D
|