CNLIVEViewController.m 1.26 KB
//
//  CNLIVEViewController.m
//  CNLiveSendPositonModule
//
//  Created by 郭瑞朋 on 11/19/2019.
//  Copyright (c) 2019 郭瑞朋. All rights reserved.
//

#import "CNLIVEViewController.h"
#import "CNLiveServices.h"
#import "CNLiveMapViewController.h"
#import <MapKit/MapKit.h>
@interface CNLIVEViewController ()<CNLiveSendPositonDelegate>

@end

@implementation CNLIVEViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom];
    btn.backgroundColor = [UIColor redColor];
    btn.frame = CGRectMake(100, 100, 100, 100);
    [self.view addSubview:btn];
    [btn addTarget:self action:@selector(btnAction) forControlEvents:UIControlEventTouchUpInside];
}

- (void)btnAction{
    id<CNLiveSendPositionProtocol> sendPositionP = [[BeeHive shareInstance] createService:@protocol(CNLiveSendPositionProtocol)];
    [sendPositionP pushToMapViewController:self];
}
- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)sendCurrentLocation:(CLLocationCoordinate2D)location image:(nonnull NSString *)img addressName:(nonnull NSArray *)arr {
    NSLog(@"");
}

@end