Class: LandscapeOnlyController
- Inherits:
-
UIViewController
- Object
- UIViewController
- LandscapeOnlyController
- Defined in:
- app/controllers/landscape_only_controller.rb
Instance Method Summary collapse
Methods inherited from UIViewController
#autorotateMask, #autorotateToOrientation, #top_level_view, #willAnimateRotationToInterfaceOrientation
Methods included from Teacup::Controller
included, #layoutDidLoad, #stylesheet=, #teacupDidLoad
Methods included from Teacup::Layout
#auto, included, #layout, #stylesheet, #stylesheet=, #subview, #top_level_view
Instance Method Details
#shouldAutorotateToInterfaceOrientation(orientation) ⇒ Object
8 9 10 11 12 13 14 |
# File 'app/controllers/landscape_only_controller.rb', line 8 def shouldAutorotateToInterfaceOrientation(orientation) if orientation == UIInterfaceOrientationLandscapeLeft or orientation == UIInterfaceOrientationLandscapeRight true else false end end |
#viewDidLoad ⇒ Object
4 5 6 |
# File 'app/controllers/landscape_only_controller.rb', line 4 def viewDidLoad UIApplication.sharedApplication.windows[0].rootViewController = MainController.alloc.init end |