应用程序在iOS 6.X.X上首次启动时花费时间

时间:2013-04-05 07:17:31

标签: ios ipad ios6

在iPad上的iOS 6.X.X版本上,应用程序启动需要5-6秒。这适用于iOS 5.X. iOS 6.X.X屏幕上的default.png文件会更长一点。加载时可能出错。

self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; UIInterfaceOrientation orientation = [[UIApplication sharedApplication] statusBarOrientation];

if (orientation==UIInterfaceOrientationLandscapeLeft || orientation==UIInterfaceOrientationLandscapeRight)
{                                                         self.viewController=[[EBHomeViewController alloc] initWithNibName:@"EBHomeViewController-LA" bundle:nil] ;
}
else if(orientation==UIInterfaceOrientationPortrait || orientation==UIInterfaceOrientationPortraitUpsideDown)
{
    self.viewController=[[EBHomeViewController alloc] initWithNibName:@"EBHomeViewController-PT" bundle:nil] ;
}

navController = [[UINavigationController alloc] initWithRootViewController:self.viewController];
self.window.rootViewController = navController;
[self.window makeKeyAndVisible];

applicationDidFinishLaunching中没有繁重的代码。我们安装应用程序&第一次打开它/重启iPad&启动申请。

0 个答案:

没有答案