3
我想旋转关于右下角的图像。要做到这一点,我知道我需要设置图层的anchorPoint,但我无法访问它。我在我的项目中包含了QuartzCore框架。为了尽可能简化问题,我将方法简化为这三行,它仍然会抛出错误“错误:访问属性的未知'anchorPoint'组件”(第2行)。UIImageView的CALayer的anchorPoint“访问属性的未知组件”错误
UIView *sqView = [[UIView alloc] init];
sqView.layer.anchorPoint = CGPointMake(1.0, 1.0);
[sqView release];
它必须是真正愚蠢的东西。我看过其他的例子,它们看起来完全相同。我错过了什么?
谢谢你,做到了。 – 2010-01-05 06:14:44