Hello Im completely new to iPhone sdk.
Im trying to build an app that shows a welcome screen for 3seconds then it switches to the main app screen which has a tab bar view.
My welcome screen is working fine when tested in isolation. But after configuring the UITabBarController in the main.xib the welcome screen is not shown. Though Tab Bar works properly.
The controller for welcome screen I’ve named as rootController.
In AppDeligate I’ve the following code –
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
RootController* rootController = [[RootController alloc] init];
// [self.window insertSubview:rootController.view atIndex:4];
[self.window addSubview:rootController.view];
[self.window makeKeyAndVisible];
return YES;
}
After the welcome screen is shown I’ll remove its view and I expect the main view consisting of tab bar to be shown. What could be the possible error?
I solved the problem very neatly. I used
presentModalViewController:animated:and dismissed intimerDidRan:method. Though I subclassedUIViewControllerand notUITabBarcontrollerwhich I feel is more correct.