ViewController.m
1.68 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
48
//
// ViewController.m
// GumpLiveSDKDemo
//
// Created by yanglele on 2017/10/19.
// Copyright © 2017年 yanglele. All rights reserved.
//
#import "ViewController.h"
#import <GumpLiveSDK/GumpLiveSDK.h>
//#import <GumpLiveSDK/UIView+Drag.h>
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
[[GumpLiveSDK instance] increaseLiveViewAndStrtWithViewController:self initialFrame:CGRectMake(0, 250, self.view.bounds.size.width*0.5*0.5, self.view.bounds.size.width*0.5*0.5*0.6) appID:@"10051" success:^(NSString *resultStr) {
NSLog(@"success result %@", resultStr);
} failuer:^(NSString *errorStr) {
NSLog(@"faile result %@", errorStr);
}];
// [[GumpLiveSDK instance] increaseLiveViewAndStrtWithViewController:self initialFrame:CGRectMakeCGRectMake(0, 250, self.view.bounds.size.width*0.5*0.5, self.view.bounds.size.width*0.5*0.5*0.6) appID:@"10011" success:^(NSString *resultStr) {
// NSLog(@"success result %@", resultStr);
// } failuer:^(NSString *errorStr) {
// NSLog(@"faile result %@", errorStr);
// }];
// [[GumpLiveSDK instance] increaseLiveViewAndStrtWithViewController:self initialFrame:CGRectMake(0, 250, self.view.bounds.size.width*0.5*0.5, self.view.bounds.size.width*0.5*0.5*0.6) success:^(NSString *resultStr) {
// NSLog(@"success result %@", resultStr);
// } failuer:^(NSString *errorStr) {
// NSLog(@"faile result %@", errorStr);
// }];
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end