如何在iOS 13上用程序更改顶部栏背景swift 4



我想将状态和导航栏从彩色更改为透明,从透明更改为彩色。我该怎么做?

在此处输入图像描述

navigationController?.navigationBar.barTintColor = .green // Set Background Color
navigationController?.navigationBar.barTintColor = .none  // remove Background Color

最新更新