title: Any way to get the frame of a UIObject from a different orientation?
body: <p>I have a piano UIView, made of Key subviews. The keys are assigned their frames relative to the frame of the piano. This works fine if I stay in portrait mode.</p>
  
  <p>But if I start in landscape mode, the frame of the piano is landscape, but the keys set themselves up relative to the portrait mode frame of the piano. (There is a gray area, so I know the frame of the piano is different than the sum of the keys)</p>
  
  <p>Is there any way to get the frame of the landscape mode piano while I'm in portrait mode? That way, I can check to see if I'm in landscape mode, and assign the appropriate frame.</p>
  
  <p>The code below is in the piano class</p>
  
  <pre><code>- (void) setWhiteKeys {
  
  CGRect baseFrame = CGRectMake(0, 0, self.frame.size.width / 7, self.frame.size.height)                
  
  for (Keys *key in whiteKeys) {
  
   // sets the key's x origin to where the previous key ended
  
  key.frame = baseFrame;
  baseFrame.origin.x = key.frame.origin.x + key.frame.size.width;
  }
  </code></pre>