[英]How to show tableView to top when scrolled
最簡單的辦法是設置topView
作為tableHeaderView
。
self.tableView.tableHeaderView = topView
現在,當您滾動tableView
topView
將會啟動它。 現在也不需要實現scrollViewDidScroll
。
在Controller
of Storyboard
選擇您的tableview
TableView
Attributes Inspector
Style
設置為Grouped
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.