forked from hCaptcha/HCaptcha-ios-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AppDelegate.m
29 lines (21 loc) · 838 Bytes
/
AppDelegate.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//
// AppDelegate.m
// HCaptcha_Objc_Example
//
// Copyright © 2022 HCaptcha. MIT License.
//
#import "AppDelegate.h"
@interface AppDelegate ()
@end
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// hCaptcha init
self.hCaptcha = [[HCaptcha alloc] initWithApiKey:@"a5f74b19-9e45-40e0-b45d-47ff91b7a6c2"
baseURL:[NSURL URLWithString: @"http://localhost"]
error:nil];
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.window.rootViewController = [[UIStoryboard storyboardWithName:@"Main" bundle:nil] instantiateInitialViewController];
[self.window makeKeyAndVisible];
return YES;
}
@end