mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-30 21:26:57 +02:00
Public rooms search: Directory page starts to work (with cells from MatrixKit)
This commit is contained in:
@@ -16,20 +16,35 @@
|
||||
|
||||
#import "DirectoryViewController.h"
|
||||
|
||||
#import "PublicRoomsDirectoryDataSource.h"
|
||||
|
||||
@interface DirectoryViewController ()
|
||||
|
||||
@end
|
||||
|
||||
@implementation DirectoryViewController
|
||||
|
||||
- (void)viewDidLoad {
|
||||
- (void)viewDidLoad
|
||||
{
|
||||
[super viewDidLoad];
|
||||
// Do any additional setup after loading the view.
|
||||
|
||||
self.title = NSLocalizedStringFromTable(@"directory_title", @"Vector", nil);
|
||||
|
||||
self.tableView.delegate = self;
|
||||
}
|
||||
|
||||
- (void)didReceiveMemoryWarning {
|
||||
[super didReceiveMemoryWarning];
|
||||
// Dispose of any resources that can be recreated.
|
||||
|
||||
- (void)viewWillAppear:(BOOL)animated
|
||||
{
|
||||
[super viewWillAppear:animated];
|
||||
|
||||
[self.tableView reloadData];
|
||||
}
|
||||
|
||||
- (void)displayWitDataSource:(PublicRoomsDirectoryDataSource *)dataSource
|
||||
{
|
||||
// Let the data source provide cells
|
||||
self.tableView.dataSource = dataSource;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -42,4 +57,10 @@
|
||||
}
|
||||
*/
|
||||
|
||||
#pragma mark - UITableViewDelegate
|
||||
|
||||
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
|
||||
{
|
||||
return 72;
|
||||
}
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user