创建base
This commit is contained in:
@@ -10,17 +10,16 @@
|
||||
#import "KBPermissionViewController.h"
|
||||
#import <AFNetworking/AFNetworking.h>
|
||||
#import <Bugly/Bugly.h>
|
||||
#import "BaseTabBarController.h"
|
||||
|
||||
static NSString * const kKBKeyboardExtensionBundleId = @"com.keyBoard.CustomKeyboard";
|
||||
|
||||
@implementation AppDelegate
|
||||
|
||||
|
||||
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
|
||||
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
|
||||
self.window.backgroundColor = [UIColor whiteColor];
|
||||
[self.window makeKeyAndVisible];
|
||||
ViewController *vc = [[ViewController alloc] init];
|
||||
self.window.rootViewController = vc;
|
||||
|
||||
[self setupRootVC];
|
||||
/// 获取网络权限
|
||||
[self getNetJudge];
|
||||
/// Bugly
|
||||
@@ -35,6 +34,15 @@ static NSString * const kKBKeyboardExtensionBundleId = @"com.keyBoard.CustomKeyb
|
||||
return YES;
|
||||
}
|
||||
|
||||
|
||||
- (void)setupRootVC{
|
||||
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
|
||||
self.window.backgroundColor = [UIColor whiteColor];
|
||||
[self.window makeKeyAndVisible];
|
||||
BaseTabBarController *vc = [[BaseTabBarController alloc] init];
|
||||
self.window.rootViewController = vc;
|
||||
}
|
||||
|
||||
#pragma mark - Permission presentation
|
||||
|
||||
- (UIViewController *)kb_topMostViewController
|
||||
|
||||
Reference in New Issue
Block a user