1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
//
// ICRAppViewControllerManager.h
// XFFruit
//
// Created by Xummer on 3/23/15.
// Copyright (c) 2015 Xummer. All rights reserved.
//
#import "IBTObject.h"
#import "IBTTabBarController.h"
#define CR_NAME_HOME @"Home"
#define CR_NAME_STORE @"Store"
#define CR_NAME_SYNC @"Sync"
#define CR_NAME_SYSTEM @"System"
typedef NS_ENUM(NSUInteger, CRTapBarItemIndex) {
kCRHome = 0,
kCRStore,
kCRSync,
kCRSystem,
};
static NSString * const ACETapBarItemNames[] = {
[ kCRHome ] = CR_NAME_HOME,
[ kCRStore ] = CR_NAME_STORE,
[ kCRSync ] = CR_NAME_SYNC,
[ kCRSystem ] = CR_NAME_SYSTEM,
};
@interface ICRAppViewControllerManager : IBTObject
{
UIWindow *m_window;
NSMutableArray *m_arrViewController;
NSMutableArray *m_arrTabBarBaseViewController;
IBTTabBarController *m_tabbarController;
}
+ (UINavigationController *)getCurrentNavigationController;
+ (IBTTabBarController *)getTabBarController;
+ (ICRAppViewControllerManager *)getAppViewControllerManager;
- (id)initWithWindow:(UIWindow *)window;
- (CGSize)getRootViewSize;
- (UIViewController *)getTabBarBaseViewController:(CRTapBarItemIndex)index;
- (IBTTabBarController *)getTabBarController;
- (NSUInteger)getCurTabBarIndex;
- (void)doLogout;
- (void)openFirstView;
- (void)openMainFrame;
- (void)createHomeViewController;
- (void)createStoreViewController;
- (void)createSyncViewController;
- (void)createSystemViewController;
@end