lucoceano/Pager

Error with using TabBarController

wayne1203 opened this issue · 6 comments

If I added TabBarController to the ViewController with Pager

I will got error in PagerController.swift Line 270 "var frame: CGRect = self.tabsView!.frame"
fatal error: unexpectedly found nil while unwrapping an Optional value (lldb)

Is it not support using TabBar??

@nschucky can you help on this?

@wayne1203 i added a tab bar to the example project, can you check if this is helpful? #33

@nschucky Thanks and I will check it after work. 😁

I checked #33 it's not problem.
Thank you for your help.

@wayne1203 I'm having the same problem. Could you share your solution, please?

For what it's worth, it helped me to call self.defaultSetup() after self.setupPager().