Sha256: 24bcf46b29e82dbd2970ac48ef25f66dc0bcb1060c50e8f23ed7b3bdf89dbef5
Contents?: true
Size: 741 Bytes
Versions: 5
Compression:
Stored size: 741 Bytes
Contents
class UINavigationController def push(view_controller) self.pushViewController(view_controller, animated: true) self end def <<(view_controller) self.pushViewController(view_controller, animated: true) self end def pop(to_view=nil) return self.!(to_view) if to_view self.popViewControllerAnimated(true) end def !(to_view=nil) if to_view self.popToViewController(to_view, animated: true) else self.popToRootViewControllerAnimated(true) end end end class UITabBarController def <<(view_controller) view_controllers = [] + self.viewControllers viewControllers << view_controller self.setViewControllers(view_controllers, animated: true) self end end
Version data entries
5 entries across 5 versions & 1 rubygems