Commit 119c6b6fa01355350120920d4c3ada8ed0d104b6
1 parent
71d056a9
退出后 清空礼物和聊天数据
Showing
8 changed files
with
33 additions
and
7 deletions
LiveVideoCloud/Classes/Sections/InteractionSections/Gift/AnimQueueManager.h
LiveVideoCloud/Classes/Sections/InteractionSections/Gift/AnimQueueManager.m
LiveVideoCloud/Classes/Sections/InteractionSections/Gift/GiftViews/GiftListView.h
LiveVideoCloud/Classes/Sections/InteractionSections/Gift/GiftViews/GiftListView.m
LiveVideoCloud/Classes/Sections/InteractionSections/LiveBaseView.h
| ... | ... | @@ -35,5 +35,9 @@ typedef NS_ENUM(NSInteger, JumpControllerType) {//跳转控制器类型 |
| 35 | 35 | |
| 36 | 36 | - (void)bounceBtnType:(BounceBtnType)btnType model:(userInfoModel *_Nonnull)model; |
| 37 | 37 | |
| 38 | -- (void)clearChatListData; | |
| 38 | +- (void)clearChatAndGiftData; | |
| 39 | + | |
| 40 | +//- (void)clearChatListData; | |
| 41 | +// | |
| 42 | +//- (void)clearGiftData; | |
| 39 | 43 | @end | ... | ... |
LiveVideoCloud/Classes/Sections/InteractionSections/LiveBaseView.m
| ... | ... | @@ -195,15 +195,21 @@ typedef NS_ENUM(NSInteger, PopType) {//弹窗类型 |
| 195 | 195 | [_commentText becomeFirstResponder];//再次让textView成为第一响应者 |
| 196 | 196 | } |
| 197 | 197 | |
| 198 | +- (void)clearChatAndGiftData | |
| 199 | +{ | |
| 200 | + [self clearChatListData]; | |
| 201 | + [self clearGiftData]; | |
| 202 | +} | |
| 203 | + | |
| 198 | 204 | - (void)clearChatListData |
| 199 | 205 | { |
| 200 | 206 | [self.chatMsgArray removeAllObjects]; |
| 201 | 207 | [self.chatTableView reloadData]; |
| 202 | - | |
| 203 | -// self.chatTableView = nil; | |
| 204 | -// self.presentView = nil; | |
| 205 | -//// self.giftPopView = nil; | |
| 206 | -// self.barrageView = nil; | |
| 208 | +} | |
| 209 | + | |
| 210 | +- (void)clearGiftData | |
| 211 | +{ | |
| 212 | + [self.giftListView cancelAllGiftAnimations]; | |
| 207 | 213 | } |
| 208 | 214 | |
| 209 | 215 | #pragma mark - UITextFieldDelegate | ... | ... |
LiveVideoCloud/Classes/Sections/LiveSections/Controller/LVCLiveViewController.m
LiveVideoCloud/Classes/Sections/UGCSections/Controller/LVCUGCLivePlayerController.m
| ... | ... | @@ -130,7 +130,7 @@ |
| 130 | 130 | NSLog(@"quit Failure"); |
| 131 | 131 | }]; |
| 132 | 132 | |
| 133 | - [_liveBaseView clearChatListData]; | |
| 133 | + [_liveBaseView clearChatAndGiftData]; | |
| 134 | 134 | |
| 135 | 135 | for (UIViewController *controller in self.navigationController.viewControllers) { |
| 136 | 136 | if ([controller isKindOfClass:[MineLiveController class]]) { | ... | ... |