iOS 集成环信3.0 remoteView已经添加上去了 但是没图像
iOS 集成环信3.0 remoteView已经添加上去了 但是没图像
localView 有图像 给了remoteView 背景色都能看到添加上去了
//1.对方窗口
_callSession.remoteView = [[EMCallRemoteView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.height * 288 / 352, self.view.frame.size.height)];
_callSession.remoteView.backgroundColor=[UIColor orangeColor];
[self.view addSubview:_callSession.remoteView];
//2.自己窗口
CGFloat width = 80;
CGFloat height = self.view.frame.size.height / self.view.frame.size.width * width;
_callSession.localView = [[EMCallLocalView alloc] initWithFrame:CGRectMake(self.view.frame.size.width - 90, 20, width, height)];
_callSession.localView.backgroundColor=[UIColor redColor];
[self.view addSubview:_callSession.localView];
localView 有图像 给了remoteView 背景色都能看到添加上去了
//1.对方窗口
_callSession.remoteView = [[EMCallRemoteView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.height * 288 / 352, self.view.frame.size.height)];
_callSession.remoteView.backgroundColor=[UIColor orangeColor];
[self.view addSubview:_callSession.remoteView];
//2.自己窗口
CGFloat width = 80;
CGFloat height = self.view.frame.size.height / self.view.frame.size.width * width;
_callSession.localView = [[EMCallLocalView alloc] initWithFrame:CGRectMake(self.view.frame.size.width - 90, 20, width, height)];
_callSession.localView.backgroundColor=[UIColor redColor];
[self.view addSubview:_callSession.localView];
没有找到相关结果
已邀请:
1 个回复
[已注销]