Public rooms search: Directory page starts to work (with cells from MatrixKit)

This commit is contained in:
manuroe
2015-12-18 17:17:03 +01:00
parent 10de4757d3
commit e71a4a090d
11 changed files with 108 additions and 37 deletions
@@ -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