title: Rotating two UiImageViews about one point
body: <p>I'm working on my first iOS app, and would like to rotate two UIImageViews A and B about a point X in between them.</p>
  
  <pre><code>+-------+
  |       |
  |   A   |
  |       |
  |       |
  +-------+
     [X]
  +-------+
  |       |
  |   B   |
  |       |
  |       |
  +-------+
  </code></pre>
  
  <p>So far, I've tried making a UIView (called twoShipView below) and placing the two ImageViews into it, and applying an animation to this UIView like this:</p>
  
  <pre><code>- (void)spinShipsWithOptions:(UIViewAnimationOptions)options {
  
      [UIView animateWithDuration:5.0f
                        delay:0.0f
                      options:options
                   animations:^{
                       self.twoShipView.transform = CGAffineTransformRotate(self.twoShipView.transform, M_PI / 2);
                   }
                   completion:^(BOOL finished) {
                       if (finished) {
                           if (self.isAnimatingShips) {
                               [self spinShipsWithOptions:UIViewAnimationOptionCurveLinear];
                           } else if (options != UIViewAnimationOptionCurveEaseOut) {
                               [self spinShipsWithOptions:UIViewAnimationOptionCurveEaseOut];
                           }
                       }
                   }
      ];
  }
  </code></pre>
  
  <p><strong>Expected result</strong>: The View itself to rotate in an animated fashion, about it's centre. The ImageViews are ships, and I'd like to be able to insert other images and manipulate them inside this View's coordinate system, so I'd like to just have the View rotate and have the ImageViews just go along with what the View does.</p>
  
  <p><strong>Actual result</strong>: The View itself does not rotate. The two ImageViews do, and because the View is a portrait oriented rectangle, the rotation cuts off the other ImageView. The animation also does not take place.</p>
  
  <p>Is there something obvious I'm missing?</p>
  
  <p>Thanks very much!
  Ian</p>