任务完成提示调整

This commit is contained in:
chenguilong
2022-08-02 18:13:51 +08:00
parent 156ad42ef4
commit 88b4788427
5 changed files with 75 additions and 39 deletions

View File

@@ -76,7 +76,6 @@
#import "XPRoomHalfMessageView.h"
#import "XPAcrossRoomPKCountDownView.h"
#import "XPNewUserRoomGiftView.h"
#import "XPTaskCompleteTipView.h"
///PK
#import "XPAnchorFansTeamEntranceView.h"
#import "XPAnchorFansTeamViewController.h"
@@ -134,8 +133,6 @@
@property (nonatomic,assign) BOOL isLoadGreet;
///3s
@property (nonatomic, strong) dispatch_source_t userGiftTimer;
///
@property (nonatomic, strong) XPTaskCompleteTipView *taskTipView;
@end
@@ -1605,31 +1602,6 @@
}];
}
#pragma mark -
- (void)handleActivityTaskTip:(AttachmentModel *)attachment {
if (!self.taskTipView.superview) {
[self addSubview:self.taskTipView];
UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(jumpToTask:)];
[self.taskTipView addGestureRecognizer:tap];
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(3.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
if (self.taskTipView.superview) {
[self.taskTipView removeFromSuperview];
}
self.taskTipView = nil;
});
}
}
- (void)jumpToTask:(UITapGestureRecognizer *)ges {
XPWebViewController * webVC =[[XPWebViewController alloc] init];
webVC.url = self.taskTipView.url;
[self.delegate.getCurrentNav pushViewController:webVC animated:YES];
if (self.taskTipView.superview) {
[self.taskTipView removeFromSuperview];
}
self.taskTipView = nil;
}
#pragma mark - Getters And Setters
- (XPRoomRankEntranceView *)contributeEnterView {
if (!_contributeEnterView) {
@@ -1796,11 +1768,4 @@
return _acrossPKCountView;
}
- (XPTaskCompleteTipView *)taskTipView {
if (!_taskTipView) {
_taskTipView = [[XPTaskCompleteTipView alloc] initWithFrame:CGRectMake(0, KScreenHeight - kSafeAreaBottomHeight-60, KScreenWidth, 20)];
}
return _taskTipView;
}
@end