This commit is contained in:
watrabi
2025-09-18 17:55:52 -04:00
commit 977f1ff4b8
15030 changed files with 17324420 additions and 0 deletions
@@ -0,0 +1,36 @@
//
// NonRotatableNavigationController.m
// RobloxMobile
//
// Created by Kyler Mulherin on 3/10/15.
// Copyright (c) 2015 ROBLOX. All rights reserved.
//
#import "NonRotatableNavigationController.h"
@interface NonRotatableNavigationController ()
@end
@implementation NonRotatableNavigationController
#ifdef __IPHONE_9_0
- (UIInterfaceOrientationMask)supportedInterfaceOrientations
#else
- (NSUInteger)supportedInterfaceOrientations
#endif
{
switch ([UIDevice currentDevice].userInterfaceIdiom)
{
case UIUserInterfaceIdiomPad: return UIInterfaceOrientationMaskLandscape;
case UIUserInterfaceIdiomPhone: return UIInterfaceOrientationMaskPortrait;
case UIUserInterfaceIdiomUnspecified: return UIInterfaceOrientationMaskPortrait;
default: return UIInterfaceOrientationMaskPortrait;
}
}
- (BOOL)shouldAutorotate
{
return NO;
}
@end