mirror of
https://github.com/zhigang1992/ProMotion.git
synced 2026-06-03 06:47:45 +08:00
Support iOS 6 force rotation.
This commit is contained in:
@@ -1,7 +1,15 @@
|
||||
module ProMotion
|
||||
class NavigationController < UINavigationController
|
||||
def shouldAutorotate
|
||||
visibleViewController.shouldAutorotate
|
||||
end
|
||||
end
|
||||
class NavigationController < UINavigationController
|
||||
def shouldAutorotate
|
||||
visibleViewController.shouldAutorotate
|
||||
end
|
||||
|
||||
def supportedInterfaceOrientations
|
||||
visibleViewController.supportedInterfaceOrientations
|
||||
end
|
||||
|
||||
def preferredInterfaceOrientationForPresentation
|
||||
visibleViewController.preferredInterfaceOrientationForPresentation
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user