title: How to get frame of subview after apply transform on mainView?
body: <p>I have created mainView objcet of <code>UIView</code> and added one subview on it. I applied transform on mainView for reducing frame size. But frame of subview of mainView was not reduced. How to reduce the size of this subview.</p>
  
  <pre><code>- (void)viewDidLoad
  {
      [super viewDidLoad];
      // Do any additional setup after loading the view, typically from a nib.
      CGFloat widthM=1200.0;
      CGFloat heightM=1800.0;
      UIView *mainView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, widthM, heightM)];
      mainView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"te.png"]];
      [self.view addSubview:mainView];
      CGFloat yourDesiredWidth = 250.0;
      CGFloat yourDesiredHeight = yourDesiredWidth *heightM/widthM;
      CGAffineTransform scalingTransform;
      scalingTransform = CGAffineTransformMakeScale(yourDesiredWidth/mainView.frame.size.width, yourDesiredHeight/mainView.frame.size.height);
       mainView.transform = scalingTransform;
      mainView.center = self.view.center;
      NSLog(@"mainView:%@",mainView);
      UIView *subMainView= [[UIView alloc] initWithFrame:CGRectMake(100, 100, 1000, 1200)];
      subMainView.backgroundColor = [UIColor redColor];
      [mainView addSubview:subMainView];
      NSLog(@"subMainView:%@",subMainView);
  
  }
  </code></pre>
  
  <p>NSlog of these views: </p>
  
  <pre><code>mainView:&lt;UIView: 0x8878490; frame = (35 62.5; 250 375); transform = [0.208333, 0, 0, 0.208333, 0, 0]; layer = &lt;CALayer: 0x8879140&gt;&gt;
  subMainView:&lt;UIView: 0x887b8c0; frame = (100 100; 1000 1200); layer = &lt;CALayer: 0x887c160&gt;&gt;
  </code></pre>
  
  <p>Here the width of mainView is 250, the width of subview is 1000. but when i get the output in simulator, subview is occupied correctly, but it's not cross the mainView. How it is possible? How to get frame of subview with respect mainView frame after transformation?</p>