Class: UITabBarController

Inherits:
Object show all
Defined in:
lib/ios/sugarcube-ui/uiviewcontroller.rb

Instance Method Summary collapse

Instance Method Details

#push(view_controller) ⇒ Object


46
47
48
49
50
51
52
53
54
# File 'lib/ios/sugarcube-ui/uiviewcontroller.rb', line 46

def push(view_controller)
  view_controllers = []
  if self.viewControllers
    view_controllers += self.viewControllers
  end
  view_controllers << view_controller
  self.setViewControllers(view_controllers, animated: true)
  self
end