lucoceano / Pager

Pager is the simplest and best way to implement sliding view controllers in Swift
MIT License
232 stars 41 forks source link

Error with using TabBarController #32

Closed wayne1203 closed 7 years ago

wayne1203 commented 7 years ago

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??

lfarah commented 7 years ago

@nschucky can you help on this?

nsleche commented 7 years ago

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

wayne1203 commented 7 years ago

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

wayne1203 commented 7 years ago

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

schroederm commented 7 years ago

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

schroederm commented 7 years ago

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