CNLiveViewController.m
1.28 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//
// CNLiveViewController.m
// CNLiveUserAgreementManager
//
// Created by 153993236@qq.com on 04/13/2019.
// Copyright (c) 2019 153993236@qq.com. All rights reserved.
//
#import "CNLiveViewController.h"
#import "CNLiveAgreementManager.h"
#import "CNLiveEnvironment.h"
@interface CNLiveViewController ()
@end
@implementation CNLiveViewController
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
[CNLiveEnvironmentManager setEnvironment:CNLiveDebugAppStore];
self.view.backgroundColor = [UIColor whiteColor];
UIButton *btn0 = [UIButton buttonWithType:UIButtonTypeCustom];
btn0.frame = CGRectMake(0, 0, 100, 100);
btn0.center = self.view.center;
btn0.backgroundColor = [UIColor redColor];
[btn0 setTitle:@"进入" forState:UIControlStateNormal];
[btn0 addTarget:self action:@selector(testButtonClicked) forControlEvents:UIControlEventTouchUpInside];
[self.view addSubview:btn0];
}
- (void)testButtonClicked {
[CNLiveAgreementManager jumpToAgreementH5WithType:CNAgreementUser];
// [CNLiveAgreementManager jumpToAgreementH5WithString:@"yhxy"];
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end