/
BirdLeon
/
ROBLOX2016
Обзор
Документация
Войти
/
BirdLeon
/
ROBLOX2016
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
iOS/RobloxUI/Source/Components/NonRotatableNavigationController.m
36 строк
888 B
PatoFlamejanteTV
full source code
19 дек 2024, 19:11
19 дек 2024, 19:11
05db15d
Код
Авторство
О чём код?
// // 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