Мое приложение запускается очень медленно.Показывает образ запуска в течение длительного времени.(около 25 секунд)
Получение этого журнала в моей Xcode
области отладчика, как показано ниже:
Main Thread Checker: UI API called on a background thread: -[UIApplication applicationState]
PID: 2911, TID: 1614792, Thread name: ComScore-Analytics, Queue name: com.apple.root.default-qos.overcommit, QoS: 21
Backtrace:
=================================================================
Main Thread Checker: UI API called on a background thread: -[UIApplication keyWindow]
PID: 2911, TID: 1614792, Thread name: ComScore-Analytics, Queue name: com.apple.root.default-qos.overcommit, QoS: 21
Backtrace:
=================================================================
Main Thread Checker: UI API called on a background thread: -[UIWindow rootViewController]
PID: 2911, TID: 1614792, Thread name: ComScore-Analytics, Queue name: com.apple.root.default-qos.overcommit, QoS: 21
Backtrace:
=================================================================
Main Thread Checker: UI API called on a background thread: -[UIApplication delegate]
PID: 2911, TID: 1614792, Thread name: ComScore-Analytics, Queue name: com.apple.root.default-qos.overcommit, QoS: 21
Backtrace:
=================================================================
Main Thread Checker: UI API called on a background thread: -[UIView bounds]
PID: 2911, TID: 1614792, Thread name: ComScore-Analytics, Queue name: com.apple.root.default-qos.overcommit, QoS: 21
Backtrace:
(Xcode 9, поддержка приложений для iOS 9,10,11, Objective-C)
Мой код в AppDelegate.m выглядит следующим образом (в didFinishLaunchingWithOptions
)
self.shareWindow = [[DFWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.shareWindow.backgroundColor = [UIColor clearColor];
MySharingNavController *navController = [[MySharingNavController alloc] init];
self.shareWindow.rootViewController = navController;
self.shareWindow.windowLevel = 1.0f;
// Video Window
self.videoWindow = [[DFWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.videoWindow.backgroundColor = [UIColor clearColor];
MyVideoNavControllerViewController* videoRootViewController = [[MyVideoNavControllerViewController alloc] init];
self.videoWindow.rootViewController = videoRootViewController;
self.videoWindow.windowLevel = 2.0f;
[[DFAxisVideoPlaybackMediator sharedVideoPlaybackMediator] setRootViewController:videoRootViewController];
self.rootViewController = [[MyRootViewController alloc] init];
// Main Window
self.window = [[MyWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
[self.window makeKeyAndVisible];
self.window.rootViewController = self.rootViewController;