title: How to remove empty cells in UITableView?
body: <p>i am trying to display a simple <code>UITableView</code> with some data. I wish to set the static height of the <code>UITableView</code> so that it doesn't displays empty cells at the end of the table. how do I do that?</p>
  
  <p>code:</p>
  
  <pre><code>- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { 
      NSLog(@"%d", [arr count]);
      return [arr count];
  }
  </code></pre>