uitableview - Set dynamic Table Cell height in expand view with Swift 3 -
i'm doing collapse/expand table view in app. add table view in view controller , write code collapse/expand.
func tableview(_ tableview: uitableview, heightforrowatindexpath indexpath: nsindexpath) -> cgfloat { return sections[indexpath.section].collapsed! ? 0 : 44 }
when table row collapse, goes '0' , expand height 44.
don't want set 44 because in each table row, put 'view' card design images.
dynamic height according quantity of view cards.
instead of 44, write uitableviewautomaticdimension not work.
please me how achieve?
Comments
Post a Comment