我想要将标签栏项目图像的默认颜色更改为图像的原始颜色(黑色),而不是选择灰色时的颜色。IOS - 标签栏项目图像修改
我也想要将标签栏项目图像更改为填充版本,一旦它被选中。
最后一件事是位置..它似乎期望在它下面的文本,所以它不居中,我如何居中垂直,可能使它更小?
我这种方式目前设置它:
let profileNavController = UINavigationController(rootViewController: profileController)
profileNavController.tabBarItem.image = UIImage(named: "icon_tab_user")