CustomTransitions/AAPLAppDelegate.m
/* |
Copyright (C) 2016 Apple Inc. All Rights Reserved. |
See LICENSE.txt for this sample’s licensing information |
Abstract: |
The application delegate. |
*/ |
#import "AAPLAppDelegate.h" |
@implementation AAPLAppDelegate |
//| ---------------------------------------------------------------------------- |
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions |
{ |
// Override point for customization after application launch. |
return YES; |
} |
//| ---------------------------------------------------------------------------- |
#ifdef __IPHONE_9_0 |
- (UIInterfaceOrientationMask)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window |
#else |
- (NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window |
#endif |
{ |
if ([UIDevice currentDevice].systemVersion.floatValue < 8.f) |
return UIInterfaceOrientationMaskPortrait; |
else |
return UIInterfaceOrientationMaskAll; |
} |
@end |
Copyright © 2016 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2016-01-28