I have a grouped UITableView
and I\'d like to add a UIButton to the very bottom of my UITableView
. I\'m using Storyboard and a UITableViewControlle
Yes it's possible in UITableViewConroller. Inside the viewDidLoad() function in your UITableViewController class add the following code:
let bottomView = UIView()
bottomView.backgroundColor = .red // or your color
bottomView.frame = CGRect(x: 0, y: UIScreen.main.bounds.size.height - 78, width: tableView.frame.size.width, height: 78) // 78 or your size of view
navigationController?.view.addSubview(bottomView)
tableView.tableFooterView = UIView()