Class: UINavigationController
- Inherits:
-
Object
- Object
- UINavigationController
- Defined in:
- lib/cha_work/sugar/uiviewcontroller.rb
Instance Method Summary collapse
Instance Method Details
#pop(to_vc = nil) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/cha_work/sugar/uiviewcontroller.rb', line 8 def pop(to_vc=nil) if to_vc == :root self.popToRootViewControllerAnimated(true) elsif to_vc self.popToViewController(to_vc, animated: true) else self.popViewControllerAnimated(true) end end |
#push(view_controller) ⇒ Object
3 4 5 6 |
# File 'lib/cha_work/sugar/uiviewcontroller.rb', line 3 def push(view_controller) self.pushViewController(view_controller, animated: true) self end |