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
Post a Comment