Read Receipts Details - Add close button

This commit is contained in:
Giom Foret
2017-06-30 14:57:11 +02:00
parent ba4a8c1674
commit 17446e0b56
4 changed files with 32 additions and 6 deletions
@@ -31,6 +31,7 @@
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UIView *containerView;
@property (weak, nonatomic) IBOutlet UITableView *receiptsTableView;
@property (weak, nonatomic) IBOutlet UIButton *closeButton;
@end
@@ -79,6 +80,9 @@
{
self.containerView.layer.cornerRadius = 20;
self.titleLabel.text = NSLocalizedStringFromTable(@"read_receipts_list", @"Vector", nil);
[_closeButton setTitle:[NSBundle mxk_localizedStringForKey:@"close"] forState:UIControlStateNormal];
[_closeButton setTitle:[NSBundle mxk_localizedStringForKey:@"close"] forState:UIControlStateHighlighted];
}
- (void)configureReceiptsTableView
@@ -106,6 +110,11 @@
[self dismissViewControllerAnimated:YES completion:nil];
}
- (IBAction)onCloseButtonPress:(id)sender
{
[self dismissViewControllerAnimated:YES completion:nil];
}
#pragma mark - UITableViewDataSource
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section