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.
我的标签栏上有 6 个选项。所以很自然地在4个选项之后,显示更多按钮。更多按钮由 3 个点表示。但我想更改更多按钮的 3 个点(默认)图像,而是用不同的图像替换它。
我怎样才能做到这一点..?
您可以尝试使用下面的代码当您在 tabbar 中有超过五个项目时,您可以尝试将此代码放在 tabbar 的 initialViewController 中。
self.tabBarController?.moreNavigationController.tabBarItem = UITabBarItem(title: "title", image: image, selectedImage: selectedImage)