任务完成提示调整
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user