使用原始图片(防止TabBar改变图片样式) let image = UIImage(named: "图片名称") imageView.image = image?.withRenderingMode(.alwaysOriginal)