Please note that you can change the height of a UITableView by simply adjusting it in viewDidAppear or viewDidLoad.
However, if you want to change the height of the tableView after this point (for example, when someone clicked a button), this is not possible for tableViews created in the Storyboard. You can change the height after loading the table for table programs created programmatically.
source share