mirror of
https://github.com/zhigang1992/ProMotion.git
synced 2026-06-05 07:00:21 +08:00
Set should_autorotate to true by default
This commit is contained in:
@@ -14,7 +14,7 @@ module ProMotion
|
||||
|
||||
true
|
||||
end
|
||||
|
||||
|
||||
def app_delegate
|
||||
UIApplication.sharedApplication.delegate
|
||||
end
|
||||
|
||||
@@ -159,7 +159,7 @@ module ProMotion
|
||||
end
|
||||
|
||||
def should_autorotate
|
||||
false
|
||||
true
|
||||
end
|
||||
|
||||
def on_rotate
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user