40 lines
1.0 KiB
Matlab
40 lines
1.0 KiB
Matlab
|
//
|
||
|
// AppDelegate.m
|
||
|
// demo
|
||
|
//
|
||
|
// Created by 杨涛 on 2020/2/6.
|
||
|
// Copyright © 2020 finogeeks. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import "AppDelegate.h"
|
||
|
#import "ViewController.h"
|
||
|
|
||
|
#import <FinApplet/FinApplet.h>
|
||
|
|
||
|
@interface AppDelegate ()
|
||
|
|
||
|
@end
|
||
|
|
||
|
@implementation AppDelegate
|
||
|
|
||
|
|
||
|
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
|
||
|
// Override point for customization after application launch.
|
||
|
|
||
|
NSString *appKey = @"22LyZEib0gLTQdU3MUauAWQrT5jdkwBnjD/4Rw9r+4kA";
|
||
|
FATConfig *config = [FATConfig configWithAppSecret:@"1a90cee1773badee" appKey:appKey];
|
||
|
config.apiServer = @"https://mp.finogeeks.com";
|
||
|
config.apiPrefix = @"/api/v1";
|
||
|
|
||
|
[[FATClient sharedClient] initWithConfig:config error:nil];
|
||
|
|
||
|
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
|
||
|
self.window.backgroundColor = [UIColor whiteColor];
|
||
|
self.window.rootViewController = [[ViewController alloc] init];
|
||
|
[self.window makeKeyAndVisible];
|
||
|
|
||
|
return YES;
|
||
|
}
|
||
|
|
||
|
@end
|