I believe I use this
- (CGFloat) tableView: (UITableView *) tableView heightForRowAtIndexPath: (NSIndexPath *) indexPath
However, I’m unsure of how to implement this. I have a button that I’ve placed above the UITableView for adding a row. Lowering the UITableView manually did not work though. Thanks for the help.
If you are using a
UITableViewController, you can’t resize thetableViewassociated. You will need to use a simpleUIViewControllerand add atableViewmanually on it, then you will be able to resize it as you wantEDIT :
As @Jeremy has pointed out, if you’re creating your
UITableViewControllertotally programmatically, you will be able to resize yourtableViewsimply withself.tableView.frame = CGRectMake(x, y, width, height).But if you’re using Storyboard or XIB, it seems that you can’t resize
tableViewneither with Interface Builder nor programmatically.