1

我的标签栏上有 6 个选项。所以很自然地在4个选项之后,显示更多按钮。更多按钮由 3 个点表示。但我想更改更多按钮的 3 个点(默认)图像,而是用不同的图像替换它。

我怎样才能做到这一点..?

4

1 回答 1

1

您可以尝试使用下面的代码当您在 tabbar 中有超过五个项目时,您可以尝试将此代码放在 tabbar 的 initialViewController 中。

self.tabBarController?.moreNavigationController.tabBarItem = UITabBarItem(title: "title", image: image, selectedImage: selectedImage)
于 2019-02-15T12:07:58.103 回答