title: Change UITableView height dynamically iOS7
body: <p>Please help me to ask this question. I tried all the choices that I could find here.</p>
  
  <p>The sample of my code is attached (I know, it's pretty bad).<br>
  How can I change <code>UITableView</code> height dynamically?</p>
  
  <pre><code>- (void)viewDidLoad 
  {
      [super viewDidLoad];
      [self vozvratmassiva];
  }
  
  - (NSMutableArray *) vozvratmassiva
  {
   ...
      return array;
  }
  
  -(NSInteger)numberOfSectionInTableView:(UITableView *)tableView
  {
      return 1;
  }
  
  -(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
  {
      NSArray *a = [self vozvratmassiva];
      return a.count;
  }
  
  -(UITableViewCell *)tableView:(UITableView *) tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
      ....
      return cell;
  }
  
  - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath 
  {
       ....
      return commonsize;
  }
  
  @end
  </code></pre>