CNLIVEViewController.m
1.18 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
//
// CNLIVEViewController.m
// CNLiveBBASMModule
//
// Created by 杨苓玉 on 10/21/2021.
// Copyright (c) 2021 杨苓玉. All rights reserved.
//
#import "CNLIVEViewController.h"
#import "CNLiveBBASMModule/CNLiveBBASMModuleService.h"
#import <CNLiveBeeHive/CNLiveBeeHive.h>
@interface CNLIVEViewController ()<HomeServiceProtocol>
@end
@BeeHiveService(HomeServiceProtocol, CNLIVEViewController)
@implementation CNLIVEViewController
- (UIViewController *)getConnnectVC
{
CNLIVEViewController *vc = [[CNLIVEViewController alloc] init];
return vc;
}
- (void)viewDidLoad
{
[super viewDidLoad];
self.view.backgroundColor = [UIColor whiteColor];
UIButton *btn = [[UIButton alloc] initWithFrame:CGRectMake(0, 40+100, 100, 44)];
[btn addTarget:self action:@selector(action) forControlEvents:UIControlEventTouchUpInside];
btn.backgroundColor = [UIColor grayColor];
[self.view addSubview:btn];
}
-(void)action{
NSString *spURL = @"cnlive://swan/4fecoAqgCIUtzIyA4FAPgoyrc4oUc25c";
[CNLiveBBASMModuleService openBBASMModule:spURL];
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end