0

我想更改GMSPlacePickerViewController导航栏中取消和搜索图标的颜色。我尝试更改背景颜色以进行测试,但它不起作用。

func textFieldDidBeginEditing(_ textField: UITextField) {
    let config = GMSPlacePickerConfig(viewport: nil)
    let placePicker = GMSPlacePickerViewController(config: config)
    placePicker.delegate = self
    placePicker.navigationController?.navigationBar.backgroundColor = UIColor.black
    placePicker.navigationController?.navigationBar.isTranslucent = false
    present(placePicker, animated: true, completion: nil)

}

当前截图

4

0 回答 0