You can change the frame only after the layoutSubviews call is layoutSubviews , which occurs after viewWillAppear . After calling layoutSubviews in UIVIew you can resize.
As Gavin says, if you enable autostart, you can add restrictions to the UITableView through the storyboard, enable the height limit, and change its value as follows:
constraint.constant = 132.0f
Otherwise, if you turned off autostart, you can simply change the frame to update the height, but by placing the code in another method, for example viewDidLoad:
source share