cim/cim-client-sdk/cim-ios-sdk/CIMKit/AViewController.m
2020-11-25 14:32:26 +08:00

42 lines
887 B
Objective-C

//
// AViewController.m
// CIMKit
//
// Created by mason on 2020/11/19.
//
#import "AViewController.h"
#import "CIMService.h"
@interface AViewController ()<CIMPeerMessageObserver>
@end
@implementation AViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
self.view.backgroundColor = UIColor.whiteColor;
[[CIMService instance] addMessageObserver:self];
}
- (void)cimhandleMessage:(CIMMessageModel *)msg{
NSLog(@"AViewController:%@",msg.content);
}
/*
#pragma mark - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
// Get the new view controller using [segue destinationViewController].
// Pass the selected object to the new view controller.
}
*/
@end