diff --git a/Limelight/Limelight-Info.plist b/Limelight/Limelight-Info.plist
index 5a292cf1..509503f7 100644
--- a/Limelight/Limelight-Info.plist
+++ b/Limelight/Limelight-Info.plist
@@ -56,6 +56,11 @@
NSLocalNetworkUsageDescription
Moonlight uses the local network to connect to your gaming PC for streaming.
+ UIApplicationSceneManifest
+
+ UIApplicationSupportsMultipleScenes
+
+
UIApplicationSupportsIndirectInputEvents
UILaunchStoryboardName
@@ -69,7 +74,7 @@
armv7
UIRequiresFullScreen
-
+
UIStatusBarHidden
UISupportedInterfaceOrientations
diff --git a/Limelight/OrientationHelper.swift b/Limelight/OrientationHelper.swift
index 88832b19..193bac3a 100644
--- a/Limelight/OrientationHelper.swift
+++ b/Limelight/OrientationHelper.swift
@@ -10,8 +10,8 @@ import Foundation
import UIKit
-class OrientationHelper {
- static func updateOrientationToLandscape() {
+@objc class OrientationHelper: NSObject {
+ @objc static func updateOrientationToLandscape() {
if #available(iOS 16.0, *) {
// 调用此方法会使视图控制器重新评估其支持的方向集。
UIApplication.shared.keyWindow?.rootViewController?.setNeedsUpdateOfSupportedInterfaceOrientations()
diff --git a/Limelight/ViewControllers/MainFrameViewController.m b/Limelight/ViewControllers/MainFrameViewController.m
index 0464e4b7..29676339 100644
--- a/Limelight/ViewControllers/MainFrameViewController.m
+++ b/Limelight/ViewControllers/MainFrameViewController.m
@@ -29,6 +29,7 @@
#import "LocalizationHelper.h"
#import "CustomEdgeSwipeGestureRecognizer.h"
#import "DataManager.h"
+#import "Moonlight-Swift.h"
#if !TARGET_OS_TV
#import "SettingsViewController.h"
@@ -1003,6 +1004,7 @@ static NSMutableSet* hostList;
- (void)viewDidLoad
{
+ [OrientationHelper updateOrientationToLandscape];
[super viewDidLoad];
[self attachWaterMark];