开发者

Facing Problem in UITabar Item deselect

开发者 https://www.devze.com 2023-02-20 21:22 出处:网络
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.

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];
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号