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