Basically what I want is that I want to rotate two images (clock hands for example) around the same anchor point. They should always rotate in the opposite angle as the other clock hand. I've tried using this code below, however it doesn't work. It should work I suppose. What am I doing wrong?
//viewDidLoad
movingview.transform.Label1.layer.anchorPoint = CGPointMake(0.5, 1);
movingview2.transform.Label1.layer.anchorPoint = CGPointMake(0.5, 0);
//timer getting called every 0.01 seconds:
rotation += 0.005;
movingview.transform = CGAffineTransformMakeRotation(rotation);
movingview2.transform = CGAffineTransformMakeRotation(M_PI+rotation);