XLPagerTabStrip: I want to add ButtonBarView with subviews

Viewed 35

App is crashing and prints the following in console:

fatal error: Sub-class must implement the PagerTabStripDataSource viewControllers(for:)

Sub-class must implement the PagerTabStripDataSource viewControllers(for:) method

Tap on heading to view image. I have a class that is inheriting from ButtonBarPagerTabStripViewController. When super.viewdidload is called in this class the app crashes. Since this class inherits from PagerTabStripDataSourc I cant conform to the datasource in this class. Look at the crash results it seems that the exact line causing it to crash is

viewControllers = dataSource.viewControllers(for: self) in private func reloadViewControllers() in PagerTabStripViewController

0 Answers
Related