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

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -