title: How to change View size programmatically?
body: <p>There are few questions regarding this topic in stackoverflow. But none of the solutions are working for me. </p>
  
  <p>I have a requirement to show pop up when user clicks on the row of a table view. Again this pop-up should contain a <code>tableView</code>. Since Apple recommandation is not use <code>tableView</code> inside a alertView,So, I need to use normal <code>UIView</code> with lesser size. </p>
  
  <p><code>UIView</code> is drawn using <code>storyboard</code>. </p>
  
  <p>Programmatically I am trying following code to reduce the size. </p>
  
  <pre><code>- (void)viewDidLoad
  {
      [super viewDidLoad];
  
      CGRect newFrame = self.view.frame;
  
      newFrame.size.width = 200;
  
      newFrame.size.height = 200;
  
      [self.view setFrame:newFrame];
  }
  </code></pre>
  
  <p>But it is not working. </p>