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

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

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

StringGrid issue in Delphi XE8 firemonkey mobile app -