礼物面板的显示基本完成

This commit is contained in:
fengshuo
2021-11-15 18:59:44 +08:00
parent 7114c802e5
commit 5f05d5d750
21 changed files with 472 additions and 116 deletions

View File

@@ -44,6 +44,8 @@
@property (nonatomic,strong) UIView * placeHolderView;
///
@property (nonatomic,weak) id<RoomHostDelegate> delegate;
///
@property (nonatomic,weak) XPSendGiftView *giftView;
@end
@@ -80,7 +82,9 @@
break;
case XPRoomMenuItemType_Gift: {
NSString * roomUid = [NSString stringWithFormat:@"%ld", [self.delegate getRoomInfo].uid];
XPSendGiftView * giftView = [[XPSendGiftView alloc] initWithType:SendGiftType_Room uid:roomUid];
XPSendGiftView * giftView = [[XPSendGiftView alloc] initWithType:SendGiftType_Room uid:roomUid delegate:self.delegate];
[giftView updateMicro:[self.delegate getMicroQueue].allValues];
self.giftView = giftView;
[TTPopup popupView:giftView style:TTPopupStyleActionSheet];
}
break;
@@ -100,6 +104,8 @@
} else {
self.micButton.hidden = YES;
}
[self.giftView updateMicro:queue.allValues];
}
#pragma mark - Private Method