Class: UINavigationController
- Defined in:
- lib/ios/sugarcube-ui/uiviewcontroller.rb
Instance Method Summary collapse
Instance Method Details
#pop(to_vc = nil) ⇒ Object
31 32 33 34 35 36 37 38 39 |
# File 'lib/ios/sugarcube-ui/uiviewcontroller.rb', line 31 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
26 27 28 29 |
# File 'lib/ios/sugarcube-ui/uiviewcontroller.rb', line 26 def push(view_controller) self.pushViewController(view_controller, animated: true) self end |