How to always visible scroller of Tableview in Obj c?

前端 未结 6 916
春和景丽
春和景丽 2020-12-19 02:55

I want to show user there is a more content below but UITableView only shows scroll indicator when we scroll the tableview. There is any way, so I can show scroll indicator

6条回答
  •  南方客
    南方客 (楼主)
    2020-12-19 03:40

    There's no way (that I know of) to permanently display the scrollbars. You can

    [tableView flashScrollIndicators]
    

    in -viewDidAppear: to shortly display the scrollbars when the view is shown.

    Also, if you have many entries, you might wanna consider showing the (alphabetic) section index at the right. To do that, define -sectionIndexTitlesForTableView in your UITableViewDataSource. Using tableView.sectionIndexMinimumDisplayRowCount you can define the minimum number of entries to display the section Index.

提交回复
热议问题