MasterTabBarController: Remove show detail segues. Delegate presentation.

This commit is contained in:
SBiOSoftWhare
2020-09-07 10:01:06 +02:00
parent ca1a28f615
commit cdfbcd4a05
3 changed files with 134 additions and 128 deletions
@@ -35,8 +35,14 @@
#define TABBAR_GROUPS_INDEX 4
#define TABBAR_COUNT 5
@protocol MasterTabBarControllerDelegate;
@interface MasterTabBarController : UITabBarController
// UITabBarController already have a `delegate` property
@property (weak, nonatomic) id<MasterTabBarControllerDelegate> masterTabBarDelegate;
@property (weak, nonatomic) IBOutlet UIBarButtonItem *settingsBarButtonItem;
@property (weak, nonatomic) IBOutlet UIBarButtonItem *searchBarButtonIem;
@@ -165,3 +171,6 @@
@end
@protocol MasterTabBarControllerDelegate <NSObject>
- (void)masterTabBarController:(MasterTabBarController*)masterTabBarController wantsToPresentDetailViewController:(UIViewController*)detailViewController;
@end