以编程方式选择的选项卡不显示突出显示叠加
我正在尝试以编程方式切换选项卡。我尝试使用以下调用来执行此操作:
tabBarController.selectedIndex = 2;
tabBarController.selectedViewController = checkinViewController;
在这两种情况下,这就是我得到的:
alt text http://cl.ly/ 1Gia/内容
这就是我想要的:
替代文本 http: //cl.ly/1GKE/content
有任何线索吗?
I'm trying to programmatically switch tabs. I tried to do this using the following calls:
tabBarController.selectedIndex = 2;
tabBarController.selectedViewController = checkinViewController;
In both cases, This is what I get:
alt text http://cl.ly/1Gia/content
This is what I want:
alt text http://cl.ly/1GKE/content
Any clue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许只是尝试不使用
selectedIndex
?另外,那里有第四个选项卡项目吗?如果只有 3 个,则 selectedIndex = 2 将是“更多”按钮,并且:一些想法,不确定这是否是答案。
Maybe just try without the
selectedIndex
? Also, is there a fourth tab item in there? If there's only 3, then selectedIndex = 2 would be the more button and:Some thoughts, not sure if this is the answer.