SubViewController
( ViewController
and的子级IndicatorInfoProvider
) 使用MainViewController
(a child of ButtonBarPagerTabStripViewController
) with NavigationBar
added 添加。
即使您点击 tabbutton 也不会发生填充,滑动时会在顶部发生填充。
动画 gif
override func viewDidLoad() {
super.viewDidLoad()
print("viewDidLoad")
// Do any additional setup after loading the view.
self.view.backgroundColor = UIColor.clear
//tableview
self.tableView.delegate = self
self.tableView.dataSource = self
self.tableView.backgroundView = nil
self.tableView.backgroundColor = UIColor.clear
//動的に高さを変更
self.tableView.estimatedRowHeight = 155
self.tableView.rowHeight = UITableViewAutomaticDimension
//indicator
self.tableView.showIndicator()
//loaddata
loadData(page:0)
}