没设置之前的:


Mode.alwaysOriginal)
设置tabBarItem.image图片渲染模式 imageWithRenderingMode属性为UIImageRenderingModeAlwaysOriginal ,即可使图片显示原始状态
self.tabBarItem.selectedImage = #imageLiteral(resourceName: "Unknown").withRenderingMode(UIImageRendering
self.tabBarItem.image = #imageLiteral(resourceName: "cat01").withRenderingMode(UIImageRenderingMode.alwaysOriginal)
设置之后的:


网友评论