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
Post a Comment