This commit is contained in:
启星
2025-12-04 14:11:00 +08:00
parent 2d37ab6844
commit 1c5a908dda
49 changed files with 505 additions and 192 deletions

View File

@@ -74,14 +74,15 @@
[self.view addSubview:vc.view];
}
-(void)reloadConversions{
[self.vc.view removeFromSuperview];
[self.vc removeFromParentViewController];
self.vc = nil;
self.vc = [[TUIConversationListController alloc] init];
self.vc.view.frame = CGRectMake(0, NavContentHeight, SCREEN_WIDTH, self.view.height-NavContentHeight);
self.vc.tableViewForAll.tableHeaderView = self.topView;
[self addChildViewController:self.vc];
[self.view addSubview:self.vc.view];
// [self.vc.view removeFromSuperview];
// [self.vc removeFromParentViewController];
// self.vc = nil;
// self.vc = [[TUIConversationListController alloc] init];
// self.vc.view.frame = CGRectMake(0, NavContentHeight, SCREEN_WIDTH, self.view.height-NavContentHeight);
// self.vc.tableViewForAll.tableHeaderView = self.topView;
// [self addChildViewController:self.vc];
// [self.view addSubview:self.vc.view];
[self.vc reloadConversationList];
}
- (void)conversationListController:(UIViewController *)conversationController
@@ -98,6 +99,7 @@
data.title = conversation.title;
data.faceUrl = conversation.faceUrl;
vc.data = data;
[self.vc.dataProvider markConversationAsRead:conversation];
[self.navigationController pushViewController:vc animated:YES];
// }