ios - Set UITableView frame height based on numberOfRows? -


i create uitableview in interface builder, , in vc viewdidload method resize tableview via tableview.frame.size.height = 65*numberofrows not change frame of tableview. tried moving code viewwillappear doesn't work either.

because of design issue don't want set tableview scrollable, want resize tableview frame based on row number.

is there way resize uitableview created in ib?


Comments

Popular posts from this blog

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -