room vc 协议整理

This commit is contained in:
zu
2022-01-13 18:45:17 +08:00
committed by fengshuo
parent 2b73ded0cd
commit 5c14669e80
10 changed files with 92 additions and 20 deletions

View File

@@ -95,7 +95,7 @@
[[NIMSDK sharedSDK].broadcastManager removeDelegate:self];
}
- (instancetype)initWithdelegate:(id<RoomHostDelegate>)delegate {
- (instancetype)initWithDelegate:(id<RoomHostDelegate>)delegate {
self = [super init];
if (self) {
[[NIMSDK sharedSDK].broadcastManager addDelegate:self];
@@ -192,8 +192,8 @@
NSString * targetUid= [NSString stringWithFormat:@"%ld", datingModel.targetUid];
NSString * uid= [NSString stringWithFormat:@"%ld", datingModel.uid];
if (datingModel.hasHeart || datingModel.hasSelectUser) {
datingModel.originPoint = [self.delegate centerForUserAtUid:uid];
datingModel.targetPoint = [self.delegate centerForUserAtUid:targetUid];
datingModel.originPoint = [self.delegate animationPointAtStageViewByUid:uid];
datingModel.targetPoint = [self.delegate animationPointAtStageViewByUid:targetUid];
}
XPRoomDatingAnimationView * datingView = [[XPRoomDatingAnimationView alloc] init];
[self.highLevleView addSubview:datingView];
@@ -448,7 +448,7 @@
///
- (CGPoint)getGiftAnimationPoint:(NSString *)uid isEnd:(BOOL)isEnd{
CGPoint point = [self.delegate centerForUserAtUid:uid];
CGPoint point = [self.delegate animationPointAtStageViewByUid:uid];
//
if (point.x <= 0 || point.y <= 0) {
if (isEnd) {