uitableview - Change UITableViewCell Height on Orientation Change -
i have uitableview cells containing variable-height uilabels. able calculate minimum height label needs using sizewithfont:constrainedtosize:linebreakmode: , works fine when table view first loaded. when rotate table view cells become wider (meaning there fewer lines required display content). there way can have height of cells redetermined uitableview during orientation change animation or before or after? thank you. your uitableviewcontroller can implement tableview:heightforrowatindexpath: method specify row height particular row, , can @ current orientation ( [[uidevice currentdevice] orientation] ) decide height return. to make sure tableview:heightforrowatindexpath: gets called again when orientation changes, you'll need detect orientation change described in this question , , call [tableview reloaddata] .