ios - How can I hide the bottom bar when pushed but stay in the main view Controller -
i want hide bottom bar when press button or cell ( in table ) in main view controller push view controller , not when press button in bottom bar . , when main view controller i want bottom bar
i tried code in main view controller : hidesbottombarwhenpushed = true
but when press on item in bottom bar , main view controller bottom bar disappear, , same when go new view controller (by push main view controller), bottom bar in main view controller disappears.
so far can see have hide bottom bar in prepareforsegue func in first view controller. code below works fine on side:
override func prepareforsegue(segue: uistoryboardsegue, sender: anyobject?) { if segue.identifier == "yoursegue" { if let indexpath = tableview.indexpathforselectedrow() { if let destvc = segue.destinationviewcontroller as? targetvc { destvc.hidesbottombarwhenpushed = true } } } }
Comments
Post a Comment