title: IOS- UITableView scroll back to top
body: <p>i am using Custom <code>UITableView</code> in my project for displaying data it works fine but when i try to scroll it to bottom it doesn't stop at desired cell it always jumps to the top of the table. only shows 2-3 cells.
  please suggest what to add to overcome this problem.</p>
  
  <p>i tried so many codes answered in similar type of questions but they doesn't work</p>
  
  <p>i uses the following codes for <code>UITableView</code></p>
  
  <pre><code>newsFeedTable = [[UITableView alloc]init];
      CGFloat Ytablepadding = CGRectGetMaxY(homeView.frame)+60;
      CGFloat heighttable = 700;
      newsFeedTable.frame = CGRectMake(0,Ytablepadding, self.view.frame.size.width, heighttable);
      [self.view addSubview:newsFeedTable];
      newsFeedTable.delegate=self;
      newsFeedTable.dataSource= self;
  </code></pre>