ios - How to scroll to a section when UITableViewCell has automatic height? -


i have uitableview in uiviewcontroller multiple cell prototypes , automatic row height , multiple sections , rows.

some sections has header view, others none.

mytableview.rowheight = uitableviewautomaticdimension

i want jump on 10th section, use: let section = nsindexpath(forrow: 0, insection: 9) mytableview.scrolltorowatindexpath(section, atscrollposition: .top, animated: true)

but didn't work, because think ios cannot know 10th section start due on uitableviewautomaticdimension.

what think? how can scroll particular section while cells has variable content , height?

thanks reading.


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -