AppDelegate.m 976 B

123456789101112131415161718192021222324
  1. #import "AppDelegate.h"
  2. #import "TestAgrobusinessUnconditionedStrTool.h"
  3. @interface AppDelegate ()
  4. @end
  5. @implementation AppDelegate
  6. - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
  7. [[FBSDKApplicationDelegate sharedInstance] application:application didFinishLaunchingWithOptions:launchOptions];
  8. return YES;
  9. }
  10. - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(nonnull NSDictionary<UIApplicationOpenURLOptionsKey, id> *)options {
  11. [[FBSDKApplicationDelegate sharedInstance] application:application openURL:url options:options];
  12. return YES;
  13. }
  14. - (UIInterfaceOrientationMask)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window{
  15. if (window.rootViewController.presentedViewController.parentViewController != nil) {
  16. return UIInterfaceOrientationMaskAll;
  17. }
  18. return UIInterfaceOrientationMaskLandscape;
  19. }
  20. @end