CNLIVEViewController.m
1.17 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
//
// CNLIVEViewController.m
// CNLiveBUserAgreement
//
// Created by iOS-Xiaowen on 04/21/2020.
// Copyright (c) 2020 iOS-Xiaowen. All rights reserved.
//
#import "CNLIVEViewController.h"
#import "CNLiveUserAgreementManager.h"
#import "CNLiveUserAgreementController.h"
@interface CNLIVEViewController ()
@end
@implementation CNLIVEViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
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 {
[CNLiveUserAgreementManager jumpToAgreementH5WithType:CNLiveUserAgreementComplaints];
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end