UITabar 项目取消选择时面临问题
我在使用 uitabbaritem 时遇到一些问题。 我已经以编程方式创建了 uitabbaritem。 我想要的是默认情况下不应选择任何选项卡项。 这是我使用的一些代码。
UITabBarController *tabBarController = [[UITabBarController alloc] init];
tabBarController.view.frame = CGRectMake(0, 0, 320, 460);
// Set each tab to show an appropriate view controller
[tabBarController setViewControllers:
[NSArray arrayWithObjects:landingController,aboutUsController, featuresController,faqController, contactUsController, nil]];
任何人都知道我怎样才能摆脱它??? 任何帮助将不胜感激。谢谢。
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
[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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
要显示不属于常规导航的页面,请使用
[UIViewController PresentModalViewController:animated:]
,如下例所示:在应用程序委托中的某个位置,在将 tabBarController 添加到活动视图后立即/窗户;
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;