心愿礼物面板的部分UI
This commit is contained in:
@@ -77,6 +77,7 @@
|
||||
#import "XPRoomHalfMessageView.h"
|
||||
#import "XPAcrossRoomPKCountDownView.h"
|
||||
#import "XPNewUserRoomGiftView.h"
|
||||
#import "XPWishGiftViewController.h"
|
||||
///个播PK
|
||||
#import "XPAnchorFansTeamEntranceView.h"
|
||||
#import "XPAnchorFansTeamViewController.h"
|
||||
@@ -135,6 +136,9 @@
|
||||
///获取新用户礼物倒计时3s
|
||||
@property (nonatomic, strong) dispatch_source_t userGiftTimer;
|
||||
|
||||
///许愿礼物
|
||||
@property (nonatomic,strong) UIView *wishGiftView;
|
||||
|
||||
@end
|
||||
|
||||
@implementation XPRoomFunctionContainerView
|
||||
@@ -233,6 +237,8 @@
|
||||
[self addSubview:self.topicStackView];
|
||||
[self.topicStackView addArrangedSubview:self.topicLabel];
|
||||
[self.topicStackView addArrangedSubview:self.editButton];
|
||||
|
||||
[self addSubview:self.wishGiftView];
|
||||
}
|
||||
|
||||
- (void)initSubViewConstraints {
|
||||
@@ -248,6 +254,12 @@
|
||||
make.height.mas_equalTo(15);
|
||||
make.top.mas_equalTo(50 + 5 + 6 + 12 + 3 + kNavigationHeight);
|
||||
}];
|
||||
|
||||
[self.wishGiftView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.size.mas_equalTo(CGSizeMake(100, 40));
|
||||
make.right.mas_equalTo(self);
|
||||
make.top.mas_equalTo(self).offset(kNavigationHeight + 50);
|
||||
}];
|
||||
}
|
||||
|
||||
- (void)showLittleGameMiniView:(RoomType)type micCount:(NSInteger)micCount {
|
||||
@@ -1635,6 +1647,14 @@
|
||||
}];
|
||||
}
|
||||
|
||||
#pragma mark - 心愿礼物
|
||||
- (void)tapWishGift {
|
||||
NSString * roomUid = [NSString stringWithFormat:@"%ld", self.delegate.getRoomInfo.uid];
|
||||
XPWishGiftViewController * vc = [[XPWishGiftViewController alloc] initWithRoomUid:roomUid];
|
||||
vc.modalPresentationStyle = UIModalPresentationOverFullScreen;
|
||||
[self.delegate.getCurrentNav presentViewController:vc animated:YES completion:nil];
|
||||
}
|
||||
|
||||
#pragma mark - Getters And Setters
|
||||
- (XPRoomRankEntranceView *)contributeEnterView {
|
||||
if (!_contributeEnterView) {
|
||||
@@ -1797,4 +1817,14 @@
|
||||
return _acrossPKCountView;
|
||||
}
|
||||
|
||||
- (UIView *)wishGiftView {
|
||||
if (!_wishGiftView) {
|
||||
_wishGiftView = [[UIView alloc] init];
|
||||
_wishGiftView.backgroundColor = [UIColor clearColor];
|
||||
UITapGestureRecognizer * tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapWishGift)];
|
||||
[_wishGiftView addGestureRecognizer:tap];
|
||||
}
|
||||
return _wishGiftView;
|
||||
}
|
||||
|
||||
@end
|
||||
|
Reference in New Issue
Block a user