mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-22 17:42:45 +02:00
Empty screens: Implement empty view management in RecentsViewController.
This commit is contained in:
@@ -17,6 +17,8 @@
|
||||
|
||||
#import <MatrixKit/MatrixKit.h>
|
||||
|
||||
@class RootTabEmptyView;
|
||||
|
||||
@interface RecentsViewController : MXKRecentListViewController <MXKRecentListViewControllerDelegate>
|
||||
{
|
||||
@protected
|
||||
@@ -83,6 +85,11 @@
|
||||
*/
|
||||
@property (nonatomic) NSString *screenName;
|
||||
|
||||
/**
|
||||
Empty view to display when there is no item to show on the screen.
|
||||
*/
|
||||
@property (nonatomic, weak) RootTabEmptyView *emptyView;
|
||||
|
||||
/**
|
||||
Return the sticky header for the specified section of the table view
|
||||
|
||||
@@ -177,5 +184,17 @@
|
||||
- (void)didTapOnSectionHeader:(UIGestureRecognizer*)gestureRecognizer;
|
||||
- (void)didSwipeOnSectionHeader:(UISwipeGestureRecognizer*)gestureRecognizer;
|
||||
|
||||
#pragma mark - Empty view
|
||||
|
||||
/**
|
||||
Overrides this method to fill the empty view with data.
|
||||
*/
|
||||
- (void)updateEmptyView;
|
||||
|
||||
/**
|
||||
Overrides this method to indicate if empty view should be shown. Returns NO by default.
|
||||
*/
|
||||
- (BOOL)shouldShowEmptyView;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user