I\'m trying to create a view programmatically. The result that i want to have is a scroll view with a tableview inside. And under this table view i want to add some buttons
If you have the UITableView inside a UINavigationController you can set toolbar items at the bottom on your UITableViewController
/ UIViewController
.
UIBarButtonItem *barButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAction target:nil action:nil];
self.toolbarItems = @[barButton];
Please remember to show the Toolbar as well like this:
self.navigationController.toolbarHidden = NO;
//or animated
[self.navigationController setToolbarHidden:NO animated:YES];
That is probably cleaner than hacking a view below your table.