From baba7dcd3a41e2076edf60cc180ba58a7f56cdd6 Mon Sep 17 00:00:00 2001 From: Jamon Holmgren Date: Thu, 21 Feb 2013 23:50:54 -0800 Subject: [PATCH] Set should_autorotate to true by default --- lib/ProMotion/app_delegate.rb | 2 +- lib/ProMotion/screen/_screen_module.rb | 2 +- lib/ProMotion/screen/screen.rb | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/ProMotion/app_delegate.rb b/lib/ProMotion/app_delegate.rb index f214ffe..63ecf69 100644 --- a/lib/ProMotion/app_delegate.rb +++ b/lib/ProMotion/app_delegate.rb @@ -14,7 +14,7 @@ module ProMotion true end - + def app_delegate UIApplication.sharedApplication.delegate end diff --git a/lib/ProMotion/screen/_screen_module.rb b/lib/ProMotion/screen/_screen_module.rb index 7cd2064..2116eca 100644 --- a/lib/ProMotion/screen/_screen_module.rb +++ b/lib/ProMotion/screen/_screen_module.rb @@ -159,7 +159,7 @@ module ProMotion end def should_autorotate - false + true end def on_rotate diff --git a/lib/ProMotion/screen/screen.rb b/lib/ProMotion/screen/screen.rb index 1fbfedd..410c04a 100644 --- a/lib/ProMotion/screen/screen.rb +++ b/lib/ProMotion/screen/screen.rb @@ -1,6 +1,7 @@ module ProMotion class Screen < ViewController # You can inherit a screen from any UIViewController if you include the ScreenViewController module + # Just make sure to implement the Obj-C methods in _cocoatouch/ViewController.rb. include ProMotion::ScreenModule end end \ No newline at end of file