1 @interface ViewController ()
2
3 @property (nonatomic, weak) IBOutlet UIImageView *hourHand;
4 @property (nonatomic, weak) IBOutlet UIImageView *minuteHand;
5 @property (nonatomic, weak) IBOutlet UIImageView *secondHand;
6 @property (nonatomic, weak) NSTimer *timer;
7
8 @end
9
10 @implementation ViewController
11
12 - (void)viewDidLoad
13 {
14 [super viewDidLoad];
15 //adjust anchor points
16 self.secondHand.layer.anchorPoint = CGPointMake(0.5f, 0.9f);
17 self.minuteHand.layer.anchorPoint = CGPointMake(0.5f, 0.9f);
18 self.hourHand.layer.anchorPoint = CGPointMake(0.5f, 0.9f);
19 //start timer
20 self