I am having some problems with uitabbaritem. I have created uitabbaritem programmatically. And what I want is by default none of the tabbaritems should be selected. Here is some of the code which I used.
UITabBarController *tabBarController = [[UITabBarController alloc] init];
tabBarController.view.frame = CGRectMake(0, 0, 320, 460);
// Set each tab to show an appropriate view controller
开发者_C百科[tabBarController setViewControllers:
[NSArray arrayWithObjects:landingController,aboutUsController, featuresController,faqController, contactUsController, nil]];
Any one having idea How can I get rid of it??? Any help would be appreciated.Thank you.
For showing a page that shall not be part of the regular navigation, use [UIViewController presentModalViewController:animated:]
like this example:
Somewhere within your app-delegate, right after adding your tabBarController to the active view/window;
[tabBarController presentModalViewController:landingController animated:NO];
精彩评论