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.
i have added following , worked fine.
(cgfloat)tableview:(uitableview *)tableview estimatedheightforrowatindexpath:(nsindexpath *)indexpath { return uitableviewautomaticdimension; }
Comments
Post a Comment