xmartlabs / XLForm

XLForm is the most flexible and powerful iOS library to create dynamic table-view forms. Fully compatible with Swift & Obj-C.
MIT License
5.77k stars 953 forks source link

How can I set "Hide Bottom Bar on Push" for a viewControllerClass ? #996

Open carlhunterroach opened 6 years ago

carlhunterroach commented 6 years ago

I've a UITabBarController with 3 tabs. One tab displays an XLForm. Most of the rows in this XLForm object use a segue to a viewcontroller on my storyboard but there is one (called "Settings") where I set row!.action.viewControllerClass instead.

For this one, the tabbar of the main viewcontroller remains visible. For my storyboard VCs I can check "Hide Bottom Bar on Push". In the vc for Settings I've tried setting hidesBottomBarWhenPushed to true in viewDidLoad but that's not had any effect.

How can I get the tabbar to disappear when "Settings" appears? And reappear when "Settings" closes?

    row = XLFormRowDescriptor(tag:"settings", rowType:XLFormRowDescriptorTypeButton, title:"Settings")
    row!.selectorTitle = "Settings"
    row!.action.viewControllerClass = SettingsViewController.self