AppDelegate.m 1.09 KB
//
//  AppDelegate.m
//  test-pingan
//
//  Created by 程言方 on 2020/12/31.
//

#import "AppDelegate.h"
#import "ViewController.h"

@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    
    HHSDKOptions * options = [[HHSDKOptions alloc] initWithProductId:@"10284" isDebug:YES isDevelop:YES];
    
    [[HHMSDK sharedInstance] startWithOption:options];
    
    
    UIStoryboard *mainStoryboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];

    ViewController *vc = [mainStoryboard instantiateViewControllerWithIdentifier:@"ViewController"];

    UINavigationController *nav = [[UINavigationController alloc]initWithRootViewController:vc];
    
    
    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    self.window.backgroundColor = [UIColor whiteColor];

    self.window.rootViewController = nav;
        
    [self.window makeKeyAndVisible];
    return YES;
    
    
}



@end