提交
This commit is contained in:
@@ -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];
|
||||
// }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user