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, layout, #layoutDidLoad, #old_viewDidDisappear, #old_viewWillAppear, stylesheet, #stylesheet=, #top_level_view, #viewDidDisappear, #viewWillAppear, #willAnimateRotationToInterfaceOrientation
Methods included from Teacup::Layout
#layout, #stylesheet, #stylesheet=, #subview
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 = FirstController.alloc.init end |