How do I scroll a UITableView to a section that contains no rows?

后端 未结 6 711
盖世英雄少女心
盖世英雄少女心 2020-12-04 12:53

In an app I\'m working on, I have a plain style UITableView that can contain a section containing zero rows. I want to be able to scroll to this section using scrollToRowAtI

6条回答
  •  离开以前
    2020-12-04 13:04

    I think a blank row is probably the only way to go there. Is it possible to redesign the UI such that the "empty" row can display something useful?

    I say try it out, and see what the performance is like. They give pretty dire warnings about using transparent sub-views in your list items, and I didn't find that it mattered all that much in my application.

提交回复
热议问题