CALayerのanchorPointを変更すると、ビューが移動します
を変更したいのですanchorPointが、同じ場所にビューを保持します。私が試したNSLog-ing self.layer.positionとself.center、彼らは関係なく、anchorPointへの変更の同じまま両方。それでも私の見方は変わります! これを行う方法に関するヒントはありますか? self.layer.anchorPoint = CGPointMake(0.5, 0.5); NSLog(@"center point: %f %f", self.layer.position.x, self.layer.position.y); self.layer.anchorPoint = CGPointMake(1, 1); NSLog(@"center point: %f %f", self.layer.position.x, self.layer.position.y); 出力は次のとおりです。 2009-12-27 20:43:24.161 Type[11289:207] center point: 272.500000 242.500000 2009-12-27 20:43:24.162 Type[11289:207] center point: 272.500000 242.500000