CNLiveViewController.m 1.26 KB
//
//  CNLiveViewController.m
//  CNLiveDemo_LXG
//
//  Created by jyyjkt on 12/03/2018.
//  Copyright (c) 2018 jyyjkt. All rights reserved.
//

#import "CNLiveViewController.h"
#import "CNLiveTestController.h"

@interface CNLiveViewController ()

@end

@implementation CNLiveViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
    [self.view setBackgroundColor:[UIColor yellowColor]];
    
    
    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
    button.frame = CGRectMake(100, 100, 100, 100);
    [button setTitle:@"进入" forState:UIControlStateNormal];
    [button setBackgroundColor:[UIColor blueColor]];
    [button addTarget: self action:@selector(buttonAction:) forControlEvents:UIControlEventTouchUpInside];
    [button setBackgroundColor:[UIColor greenColor]];
    [self.view addSubview:button];
    
   
}
    
- (void)buttonAction:(UIButton *)sender {
    
    CNLiveTestController *testVC = [[CNLiveTestController alloc]init];
    [testVC testLog];
    [self presentViewController:testVC animated:YES completion:^{

    }];
    
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end