objective c - Wrong UITableViewCell height for some cells at first loading -


i using uitableviewautomaticdimension calculate height table view cell. works fine me. cells, height returned 44 rather dynamically calculating height. on scrolling looking same cell, height recalculated perfectly. guess not have faulty constraints because, after scroll , correct cell heights manually, no constraint breaking warning shown afterwards.

edit

the below given screenshot of image(got messed when cropped, can see issue profile image.). first cell height calculated correctly. rest faulty. enter image description here

i have added following , worked fine.

(cgfloat)tableview:(uitableview *)tableview estimatedheightforrowatindexpath:(nsindexpath *)indexpath {     return uitableviewautomaticdimension; } 

Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -