Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经实现了一个带有两个 tabBarItems 的 tabBar。
一旦按下应用程序将转到新的 VC,但是当我返回主 VC 时,tabBarItem 仍然突出显示,就好像它刚刚被按下一样。
我该如何阻止这种情况发生?
我只是[tabBarHome setSelectedItem:nil];在启动 segue 的同一块代码中使用,所以当我回到主 VC 时,它没有突出显示。
[tabBarHome setSelectedItem:nil];
我意识到 tabBar 是要与 tabBarController 一起使用的。