room vc 协议整理
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user