ViewController.m 1.68 KB
//
//  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