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.
我UITabbar在我的应用程序中使用自定义。选择选项卡时,tabbaritem图标显示为白色阴影。有什么办法可以去掉这个吗?我已经尝试了很多,但我没有得到任何解决方案。屏幕截图如下。
UITabbar
tabbaritem
在您的代码中添加这一行:
[[UITabBar appearance] setSelectionIndicatorImage:[[UIImage alloc] init]];
希望它可以帮助你。