- スタートアップアニメーション用のViewControllerを作成します
- App Delegateで、スタートアップのViewControllerを表示します
AppDelegate.mで
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
....
....
....
frontScreen *animScreen = [[frontScreen alloc] initWithNibName:@"frontScreen" bundle:nil];
self.window.rootViewController = animScreen;
[self.window makeKeyAndVisible];
}
- アニメーションが終了したら、showtabviewcontrollerを呼び出します
frontScreen.mで
AppDelegate* app =(AppDelegate*)[UIApplication sharedApplication].delegate;
[app afterAnimation];
AppDelegate.mで
-(void)afterAnimation {
rootController *list=[[rootController alloc] initWithNibName:@"rootController" bundle:nil];
self.navigationController = [[UINavigationController alloc] initWithRootViewController:list];
self.window.rootViewController = self.navigationController;
[self.window makeKeyAndVisible]; //optional
}