title: get the height of UIView
body: <p>I am having trouble in getting UIView's height. I am trying to get the height and (x,y) of my UIView. The view is add as subview of Other view</p>
  
  <pre><code>float y = optionalView.frame.size.height;
      NSLog(@"%.1f",y);
  </code></pre>
  
  <p>but it always return 0.0 . need guidance.</p>
  
  <p>Thanks...</p>