ios - custom Tableview scrolling -


i need show three/ 4 ui buttons , levels, 2 image views in custom cell there condition on basis of need hide imageview , when hidden, need decrease tableview size , buttons below of image view move upward.

for giving required conditions in

heightforrowatindexpath: , returning cells height accordingly , in tableview

cellforrowatindexpath: method hiding imageview , setting buttons positions below of imageview.

the problem that:

  1. tableview not scrolling smoothly

  2. initially @ time of scrolling down working when move upward image resizing , changing shape. solve have used autolayout still not working.

i need expert advice. in advance.enter image description here


Comments