How to always visible scroller of Tableview in Obj c?

前端 未结 6 918
春和景丽
春和景丽 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:38

    I did it:) I'm programming in MonoDevelop, so I only describe the method:

    You have to make your own UITableView class. There you overload PerformSelector and do NOT call the base function of it, but call flashScrollIndicators if the name of the Selector is _notifyPopOverStoppedScrolling.

    Overload function ReloadData and there call flashScrollIndicators as well. Only at zooming it will disappear, but you can call flashScrollIndicators at zooming too.

提交回复
热议问题