iOS template add devkit button

This commit is contained in:
pengfei.zhou
2020-03-21 11:10:20 +08:00
committed by osborn
parent 0db94701d6
commit edd212198d
4 changed files with 24 additions and 17 deletions

View File

@@ -14,17 +14,7 @@ @interface AppDelegate ()
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
NSString *bundleName = @"__$__";
DoricViewController *doricViewController = [[DoricViewController alloc] initWithSource:[NSString stringWithFormat:@"assets://src/%@.js", bundleName]
alias:bundleName
extra:@""];
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
UINavigationController *navVC = [[UINavigationController
alloc] initWithRootViewController:doricViewController];
self.window.rootViewController = navVC;
[self.window makeKeyAndVisible];
return YES;
}