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

javascript - Create websocket without connecting -

how to do line continuation in perl debugger for entering raw multi-line text (EOT)? -

android - Linear layout children not scrolling -