ios - How can I get the height of a specific row in my UITableView -
in uitableview
i've set different heights different rows using delegate method: tableview:heightforrowatindexpath:
now given nsindexpath
, height i've assigned specific row.
you can use this
cgrect frame = [tableview rectforrowatindexpath:indexpath]; nslog(@"row height : %f", frame.size.height);
using frame.size.height
can height of particular row
swift 3
let frame = tableview.rectforrow(at: indexpath) print(frame.size.height)
Comments
Post a Comment