initial commit
This commit is contained in:
27
Example/SellyCloudSDK/Live/SCNavigationController.m
Normal file
27
Example/SellyCloudSDK/Live/SCNavigationController.m
Normal file
@@ -0,0 +1,27 @@
|
||||
//
|
||||
// SCNavigationController.m
|
||||
// SellyCloudSDK_Example
|
||||
//
|
||||
// Created by Caleb on 12/18/25.
|
||||
//
|
||||
|
||||
#import "SCNavigationController.h"
|
||||
|
||||
@implementation SCNavigationController
|
||||
|
||||
// 让 topViewController 决定是否支持旋转
|
||||
- (BOOL)shouldAutorotate {
|
||||
return self.topViewController.shouldAutorotate;
|
||||
}
|
||||
|
||||
// 让 topViewController 决定支持哪些方向
|
||||
- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
|
||||
return self.topViewController.supportedInterfaceOrientations;
|
||||
}
|
||||
|
||||
// 让 topViewController 决定首选方向
|
||||
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation {
|
||||
return self.topViewController.preferredInterfaceOrientationForPresentation;
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user