// // UIAlertController+supportedInterfaceOrientations.m // LCOpenSDKDemo // // Created by bzy on 04/01/2018. // Copyright © 2018 lechange. All rights reserved. // #import "UIAlertController+supportedInterfaceOrientations.h" @implementation UIAlertController (supportedInterfaceOrientations) #if __IPHONE_OS_VERSION_MAX_ALLOWED < 90000 - (NSUInteger)supportedInterfaceOrientations{ return UIInterfaceOrientationMaskPortrait; } #else - (UIInterfaceOrientationMask)supportedInterfaceOrientations { return UIInterfaceOrientationMaskPortrait; } #endif @end