فهرست منبع

启动页优化

桂欢 1 سال پیش
والد
کامیت
902b423596
1فایلهای تغییر یافته به همراه2 افزوده شده و 3 حذف شده
  1. 2 3
      SLAiELTS/SLAiELTS/AppDelegate.mm

+ 2 - 3
SLAiELTS/SLAiELTS/AppDelegate.mm

@@ -22,7 +22,8 @@
     // Override point for customization after application launch.
     self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
     self.window.backgroundColor = [UIColor whiteColor];
-    self.window.rootViewController = [[UIViewController alloc] init];
+    UIViewController *launchScreenVc = [[UIStoryboard storyboardWithName:@"LaunchScreen" bundle:nil] instantiateInitialViewController];
+    self.window.rootViewController = launchScreenVc;
     [SLHttpCenter SharedInstance].serverUrl = @"http://dlchat.zheke.com";
 //    [SLHttpCenter SharedInstance].serverUrl = @"http://10.0.0.14:8088";
     NSString *userPhone = [[NSUserDefaults standardUserDefaults] objectForKey:@"SLUserPhone"];
@@ -67,8 +68,6 @@
     [self.window makeKeyAndVisible];
 }
 
-
-
 #pragma MARK- IQ键盘初始化
 -(void)buildIQkeyBoard
 {